ceph: don't truncate dirty pages in invalidate work thread
authorYehuda Sadeh <yehuda@hq.newdream.net>
Fri, 19 Feb 2010 00:10:11 +0000 (00:10 +0000)
committerSage Weil <sage@newdream.net>
Fri, 19 Feb 2010 22:40:51 +0000 (14:40 -0800)
commitc9af9fb68e01eb2c2165e1bc45cfeeed510c64e6
tree9af8caecd66c6557c5ada6a38d4b2ff9be180d35
parente63dc5c780ba32d6d8b3662eecce2b8d96489b41
ceph: don't truncate dirty pages in invalidate work thread

Instead of truncating the whole range of pages, we skip those
pages that are dirty or in the middle of writeback. Those pages
will be cleared later when the writeback completes.

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