]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ext3: fix nobh mode for chattr +j inodes
authorBadari Pulavarty <pbadari@us.ibm.com>
Sat, 11 Mar 2006 11:27:14 +0000 (03:27 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 11 Mar 2006 17:19:34 +0000 (09:19 -0800)
commit60a3a894fd2b340c3cb9bdf76d8300252f5cd393
tree98770b47dd7ae2e1faad4796eb03b2d4760e1b03
parentf786279daa3b4a299ee13db1e43d652705831795
[PATCH] ext3: fix nobh mode for chattr +j inodes

One can do "chattr +j" on a file to change its journalling mode.  Fix
writeback mode with "nobh" handling for it.

Even though, we mount ext3 filesystem in writeback mode with "nobh" option,
some one can do "chattr +j" on a single file to force it to do journalled
mode.  In order to do journaling, ext3_block_truncate_page() need to
fallback to default case of creating buffers and adding them to transaction
etc.

Signed-off-by: Badari Pulavarty <pbadari@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/ext3/inode.c