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-02-08 09:22:40 -08:00
2008-04-29 08:06:04 -07:00
2008-02-14 21:13:33 -08:00
2008-03-04 14:47:06 -08:00
2008-02-08 09:22:40 -08: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-02-08 09:22:40 -08:00
2008-03-19 06:42:18 -04:00
2008-03-30 14:18:41 -07:00
2008-04-28 08:58:22 -07:00
2008-04-29 08:06:00 -07:00
2008-03-30 14:18:41 -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-01-30 13:31:46 +01: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-02-14 21:13:33 -08:00
2008-02-06 10:41:07 -08:00
2008-04-29 08:06:00 -07:00
2008-04-29 08:06:01 -07:00
2008-01-30 13:31:46 +01:00
2008-02-14 21:13:33 -08:00
2008-04-21 22:15:06 +00:00
2008-02-14 21:13:33 -08:00
2008-04-29 08:06:00 -07:00