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>
This commit is contained in:
parent
3c6f6b79a6
commit
0840d8af3e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user