mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
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
1 changed files with 0 additions and 1 deletions
|
|
@ -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 a new issue