]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] retries in ext4_prepare_write() violate ordering requirements
authorAndrey Savochkin <saw@sw.ru>
Thu, 7 Dec 2006 04:37:36 +0000 (20:37 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:37 +0000 (08:39 -0800)
commitb46be05004abb419e303e66e143eed9f8a6e9f3f
tree51893650757b48b02d18f5e6ab619d5300dc08ca
parente92a4d595b464c4aae64be39ca61a9ffe9c8b278
[PATCH] retries in ext4_prepare_write() violate ordering requirements

In journal=ordered or journal=data mode retry in ext4_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/ext4/inode.c