[PATCH] fat: Fix truncate() write ordering
commit3b641407a1447759ac8159180e90ed2e4387a0b6
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Fri, 3 Feb 2006 11:04:44 +0000 (3 03:04 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 3 Feb 2006 16:32:10 +0000 (3 08:32 -0800)
tree1cf86560c28701cdff32366a5070781319da53a1
parente60e5c50aa5389db86e96fc52d02bc7db3d23f4a
[PATCH] fat: Fix truncate() write ordering

The truncate() should write the file size before writing the new EOF entry.
This patch fixes it.

This bug was pointed out by Machida Hiroyuki.

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/fat/file.c