ext4: change s_mount_opt to be an unsigned int
authorTheodore Ts'o <tytso@mit.edu>
Sat, 13 Jun 2009 14:09:41 +0000 (10:09 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 13 Jun 2009 14:09:41 +0000 (10:09 -0400)
We can only fit 32 options in s_mount_opt because an unsigned long is
32-bits on a x86 machine.  So use an unsigned int to save space on
64-bit platforms.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/inode.c
fs/ext4/super.c

index 276a26f117e6901c34c27ce05389aaf3736272d9..569f527080bf6f0e95143e6de37ab03e49525296 100644 (file)
@@ -852,7 +852,7 @@ struct ext4_sb_info {
        struct buffer_head * s_sbh;     /* Buffer containing the super block */
        struct ext4_super_block *s_es;  /* Pointer to the super block in the buffer */
        struct buffer_head **s_group_desc;
-       unsigned long  s_mount_opt;
+       unsigned int s_mount_opt;
        ext4_fsblk_t s_sb_block;
        uid_t s_resuid;
        gid_t s_resgid;
index 2418ad36eab53cb54a38a2de99ba4b9a0682350f..f8325a2bc8973746b9c1db724a1ff43545844e5f 100644 (file)
@@ -93,7 +93,7 @@ int ext4_forget(handle_t *handle, int is_metadata, struct inode *inode,
        BUFFER_TRACE(bh, "enter");
 
        jbd_debug(4, "forgetting bh %p: is_metadata = %d, mode %o, "
-                 "data mode %lx\n",
+                 "data mode %x\n",
                  bh, is_metadata, inode->i_mode,
                  test_opt(inode->i_sb, DATA_FLAGS));
 
index e8f0b2af4607e3c5ed9f9b187e3e1c8c56ec6e54..4c364ae7aeb1ac90505ab32558f1390513ac767a 100644 (file)
@@ -1655,7 +1655,7 @@ static int ext4_setup_super(struct super_block *sb, struct ext4_super_block *es,
        ext4_commit_super(sb, 1);
        if (test_opt(sb, DEBUG))
                printk(KERN_INFO "[EXT4 FS bs=%lu, gc=%u, "
-                               "bpg=%lu, ipg=%lu, mo=%04lx]\n",
+                               "bpg=%lu, ipg=%lu, mo=%04x]\n",
                        sb->s_blocksize,
                        sbi->s_groups_count,
                        EXT4_BLOCKS_PER_GROUP(sb),