OGAWA Hirofumi 762873c251 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 <hirofumi@mail.parknet.co.jp>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-04-29 08:06:06 -07:00
..
2008-04-29 08:06:02 -07:00
2008-04-29 08:06:04 -07:00
2008-04-29 08:06:00 -07:00
2008-04-28 08:58:18 -07:00
2008-04-29 08:06:01 -07:00
2008-04-28 08:58:22 -07:00
2008-04-29 08:06:00 -07:00
2008-04-28 08:58:46 -07:00
2008-04-28 08:58:45 -07:00
2008-04-28 08:58:47 -07:00
2008-04-29 08:06:00 -07:00
2008-04-29 08:06:01 -07:00
2008-04-29 08:05:59 -07:00
2008-04-25 09:24:05 -04:00
2008-04-29 08:06:06 -07:00
2008-04-29 08:06:00 -07:00
2008-04-29 08:06:01 -07:00
2008-04-21 22:15:06 +00:00
2008-04-29 08:06:00 -07:00