From: OGAWA Hirofumi Date: Tue, 29 Apr 2008 07:59:42 +0000 (-0700) Subject: vfs: fix unconditional write_super() call in file_fsync() X-Git-Tag: v2.6.26-rc1~607 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=762873c251b056c6c1b29e83a4dabafb064e5421;p=pandora-kernel.git vfs: fix unconditional write_super() call in file_fsync() We need to check ->s_dirt before calling write_super(). It became the cause of an unneeded write. This bug was noticed by Sudhanshu Saxena. Signed-off-by: OGAWA Hirofumi Cc: Al Viro Cc: Christoph Hellwig Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed