aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-02-09 18:44:16 -0500
committerSage Weil <sage@newdream.net>2010-02-11 14:48:54 -0500
commit0840d8af3e6e40bcd5f2366698eb2755f88acfea (patch)
tree9eed5acb6d23bdefcc4e4a832347199cd3b181d2 /fs
parent3c6f6b79a64db7f1c7abf09d693db3b0066784fb (diff)
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.c1
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:
1444 ci->i_rdcache_gen && /* may have cached pages */ 1444 ci->i_rdcache_gen && /* may have cached pages */
1445 (file_wanted == 0 || /* no open files */ 1445 (file_wanted == 0 || /* no open files */
1446 (revoking & CEPH_CAP_FILE_CACHE)) && /* or revoking cache */ 1446 (revoking & CEPH_CAP_FILE_CACHE)) && /* or revoking cache */
1447 !ci->i_truncate_pending &&
1448 !tried_invalidate) { 1447 !tried_invalidate) {
1449 u32 invalidating_gen = ci->i_rdcache_gen; 1448 u32 invalidating_gen = ci->i_rdcache_gen;
1450 int ret; 1449 int ret;