提交 a0e92852 编写于 作者: B Badari Pulavarty 提交者: Linus Torvalds

[PATCH] ext3: "nobh" writeback support for filesystems blocksize < pagesize

There is no valid reason why we can't support "nobh" option for filesystems
with blocksize != PAGESIZE.

This patch lets them use "nobh" option for writeback mode for blocksize <
pagesize.
Signed-off-by: NBadari Pulavarty <pbadari@us.ibm.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 f91a2ad2
...@@ -1678,12 +1678,6 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent) ...@@ -1678,12 +1678,6 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent)
} }
if (test_opt(sb, NOBH)) { if (test_opt(sb, NOBH)) {
if (sb->s_blocksize_bits != PAGE_CACHE_SHIFT) {
printk(KERN_WARNING "EXT3-fs: Ignoring nobh option "
"since filesystem blocksize doesn't match "
"pagesize\n");
clear_opt(sbi->s_mount_opt, NOBH);
}
if (!(test_opt(sb, DATA_FLAGS) == EXT3_MOUNT_WRITEBACK_DATA)) { if (!(test_opt(sb, DATA_FLAGS) == EXT3_MOUNT_WRITEBACK_DATA)) {
printk(KERN_WARNING "EXT3-fs: Ignoring nobh option - " printk(KERN_WARNING "EXT3-fs: Ignoring nobh option - "
"its supported only with writeback mode\n"); "its supported only with writeback mode\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册