ceph: remove page upon writeback completion if lost cache cap
authorYehuda Sadeh <yehuda@hq.newdream.net>
Fri, 19 Feb 2010 00:07:01 +0000 (00:07 +0000)
committerSage Weil <sage@newdream.net>
Fri, 19 Feb 2010 22:34:18 +0000 (14:34 -0800)
commite63dc5c780ba32d6d8b3662eecce2b8d96489b41
treeed6ee7f557c479934b6d8a70b7ccba86b13ae670
parent5ecad6fd7bfd30b3eaea51345f546b81de7a6473
ceph: remove page upon writeback completion if lost cache cap

This page should have been removed earlier when the cache cap was
revoked, but a writeback was in flight, so it was skipped. We truncate
it here just as the writeback finishes, while it's still locked.

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