aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2009-06-13 10:09:41 -0400
committerTheodore Ts'o <tytso@mit.edu>2009-06-13 10:09:41 -0400
commit7f4520cc6242780ce720aa440ad4b391f998b558 (patch)
treec8f1d99e019f2e29a967851031f4a60bf7ab1467 /fs/ext4
parent748de6736c1e482e111f9d1b5a5d5b1787600cad (diff)
ext4: change s_mount_opt to be an unsigned int
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>
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/ext4.h2
-rw-r--r--fs/ext4/inode.c2
-rw-r--r--fs/ext4/super.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 276a26f117e6..569f527080bf 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -852,7 +852,7 @@ struct ext4_sb_info {
852 struct buffer_head * s_sbh; /* Buffer containing the super block */ 852 struct buffer_head * s_sbh; /* Buffer containing the super block */
853 struct ext4_super_block *s_es; /* Pointer to the super block in the buffer */ 853 struct ext4_super_block *s_es; /* Pointer to the super block in the buffer */
854 struct buffer_head **s_group_desc; 854 struct buffer_head **s_group_desc;
855 unsigned long s_mount_opt; 855 unsigned int s_mount_opt;
856 ext4_fsblk_t s_sb_block; 856 ext4_fsblk_t s_sb_block;
857 uid_t s_resuid; 857 uid_t s_resuid;
858 gid_t s_resgid; 858 gid_t s_resgid;
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 2418ad36eab5..f8325a2bc897 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -93,7 +93,7 @@ int ext4_forget(handle_t *handle, int is_metadata, struct inode *inode,
93 BUFFER_TRACE(bh, "enter"); 93 BUFFER_TRACE(bh, "enter");
94 94
95 jbd_debug(4, "forgetting bh %p: is_metadata = %d, mode %o, " 95 jbd_debug(4, "forgetting bh %p: is_metadata = %d, mode %o, "
96 "data mode %lx\n", 96 "data mode %x\n",
97 bh, is_metadata, inode->i_mode, 97 bh, is_metadata, inode->i_mode,
98 test_opt(inode->i_sb, DATA_FLAGS)); 98 test_opt(inode->i_sb, DATA_FLAGS));
99 99
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index e8f0b2af4607..4c364ae7aeb1 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -1655,7 +1655,7 @@ static int ext4_setup_super(struct super_block *sb, struct ext4_super_block *es,
1655 ext4_commit_super(sb, 1); 1655 ext4_commit_super(sb, 1);
1656 if (test_opt(sb, DEBUG)) 1656 if (test_opt(sb, DEBUG))
1657 printk(KERN_INFO "[EXT4 FS bs=%lu, gc=%u, " 1657 printk(KERN_INFO "[EXT4 FS bs=%lu, gc=%u, "
1658 "bpg=%lu, ipg=%lu, mo=%04lx]\n", 1658 "bpg=%lu, ipg=%lu, mo=%04x]\n",
1659 sb->s_blocksize, 1659 sb->s_blocksize,
1660 sbi->s_groups_count, 1660 sbi->s_groups_count,
1661 EXT4_BLOCKS_PER_GROUP(sb), 1661 EXT4_BLOCKS_PER_GROUP(sb),