Fix up patch comments for consistency
[ext4-patch-queue.git] / show-mballoc-delalloc-option.patch
blob6756dfcbb759c6fed7d3c98055c637baff7c45de
1 ext4: Show mballoc and delalloc options
3 From: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
5 Both these options are enabled by default.
6 So if they are are not set in mount options
7 that means the user explicity disabled them
8 using nomablloc and nodelalloc option. Show
9 the same in ext4_show_options
11 Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
12 Acked-by: Eric Sandeen <sandeen@redhat.com>
13 Signed-off-by: Mingming Cao <cmm@us.ibm.com>
14 ---
16 fs/ext4/super.c | 5 +++++
17 1 file changed, 5 insertions(+)
20 Index: linux-2.6.24-rc3/fs/ext4/super.c
21 ===================================================================
22 --- linux-2.6.24-rc3.orig/fs/ext4/super.c 2007-12-03 16:03:49.000000000 -0800
23 +++ linux-2.6.24-rc3/fs/ext4/super.c 2007-12-03 16:05:45.000000000 -0800
24 @@ -737,6 +737,11 @@ static int ext4_show_options(struct seq_
25 seq_puts(seq, ",noextents");
26 if (test_opt(sb, I_VERSION))
27 seq_puts(seq, ",i_version");
28 + if (!test_opt(sb, MBALLOC))
29 + seq_puts(seq, ",nomballoc");
30 + if (!test_opt(sb, DELALLOC))
31 + seq_puts(seq, ",nodelalloc");
34 if (test_opt(sb, DATA_FLAGS) == EXT4_MOUNT_JOURNAL_DATA)
35 seq_puts(seq, ",data=journal");