]> bbs.cooldavid.org Git - net-next-2.6.git/commit
ceph: sync read/write considers page cache
authorYehuda Sadeh <yehuda@hq.newdream.net>
Tue, 9 Feb 2010 19:14:41 +0000 (11:14 -0800)
committerSage Weil <sage@newdream.net>
Thu, 11 Feb 2010 19:48:51 +0000 (11:48 -0800)
commit29065a513aa4c7e4b46b77cbcd25f814a4ca0bfe
tree74607baf067fe47a5eeeeb07257186fdd15de989
parent3d497d858ae6e5f23a28783030aecc69074e102d
ceph: sync read/write considers page cache

In the cases where we either do a sync read or a write, we
need to make sure that everything in the page cache is flushed.
In the case of a sync write we invalidate the relevant pages,
so that subsequent read/write reflects the new data written.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/file.c