1 ext4: Enable the multiblock allocator by default
3 From: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
5 Enable the multiblock allocator by default.
7 Fix ext4_show_options() so if it is not enabled, the nomballoc option
8 included in /proc/mounts.
10 Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
11 Acked-by: Eric Sandeen <sandeen@redhat.com>
12 Signed-off-by: Mingming Cao <cmm@us.ibm.com>
13 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
17 fs/ext4/super.c | 7 +++++++
18 1 file changed, 7 insertions(+)
21 Index: linux-2.6.24-rc7/fs/ext4/super.c
22 ===================================================================
23 --- linux-2.6.24-rc7.orig/fs/ext4/super.c 2008-01-16 13:52:19.000000000 -0800
24 +++ linux-2.6.24-rc7/fs/ext4/super.c 2008-01-16 13:52:28.000000000 -0800
25 @@ -736,6 +736,8 @@ static int ext4_show_options(struct seq_
26 seq_puts(seq, ",nobh");
27 if (!test_opt(sb, EXTENTS))
28 seq_puts(seq, ",noextents");
29 + if (!test_opt(sb, MBALLOC))
30 + seq_puts(seq, ",nomballoc");
31 if (test_opt(sb, I_VERSION))
32 seq_puts(seq, ",i_version");
34 @@ -1902,6 +1904,11 @@ static int ext4_fill_super (struct super
35 * User -o noextents to turn it off
37 set_opt(sbi->s_mount_opt, EXTENTS);
39 + * turn on mballoc feature by default in ext4 filesystem
40 + * User -o nomballoc to turn it off
42 + set_opt(sbi->s_mount_opt, MBALLOC);
44 if (!parse_options ((char *) data, sb, &journal_inum, &journal_devnum,