[PATCH] retries in ext3_prepare_write() violate ordering requirements
authorAndrey Savochkin <saw@sw.ru>
Thu, 7 Dec 2006 04:37:34 +0000 (20:37 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:37 +0000 (08:39 -0800)
commite92a4d595b464c4aae64be39ca61a9ffe9c8b278
tree7d80804e689ea1f01fc8ceaea2a1b1da78081c60
parent04903664325acb3f199dd8a4b8f1aa437e9fd6b2
[PATCH] retries in ext3_prepare_write() violate ordering requirements

In journal=ordered or journal=data mode retry in ext3_prepare_write()
breaks the requirements of journaling of data with respect to metadata.
The fix is to call commit_write to commit allocated zero blocks before
retry.

Signed-off-by: Kirill Korotaev <dev@openvz.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Ken Chen <kenneth.w.chen@intel.com>
Cc: <linux-ext4@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/ext3/inode.c