diff options
author | Sage Weil <sage@newdream.net> | 2010-02-09 15:44:16 -0800 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-02-11 11:48:54 -0800 |
commit | 0840d8af3e6e40bcd5f2366698eb2755f88acfea (patch) | |
tree | 9eed5acb6d23bdefcc4e4a832347199cd3b181d2 /fs | |
parent | 3c6f6b79a64db7f1c7abf09d693db3b0066784fb (diff) | |
download | blackbird-op-linux-0840d8af3e6e40bcd5f2366698eb2755f88acfea.tar.gz blackbird-op-linux-0840d8af3e6e40bcd5f2366698eb2755f88acfea.zip |
ceph: invalidate pages even if truncate is pending
There is no reason not to invalidate pages when a truncate is pending.
Both throw out page cache pages.
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ceph/caps.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c index 68ee78109224..20b28dc0c97c 100644 --- a/fs/ceph/caps.c +++ b/fs/ceph/caps.c @@ -1444,7 +1444,6 @@ retry_locked: ci->i_rdcache_gen && /* may have cached pages */ (file_wanted == 0 || /* no open files */ (revoking & CEPH_CAP_FILE_CACHE)) && /* or revoking cache */ - !ci->i_truncate_pending && !tried_invalidate) { u32 invalidating_gen = ci->i_rdcache_gen; int ret; |