1
0
Fork 0

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>
wifi-calibration
Sage Weil 2010-02-09 15:44:16 -08:00
parent 3c6f6b79a6
commit 0840d8af3e
1 changed files with 0 additions and 1 deletions

View File

@ -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;