Skip to content

Commit

Permalink
ceph: invalidate pages even if truncate is pending
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sage Weil committed Feb 11, 2010
1 parent 3c6f6b7 commit 0840d8a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/ceph/caps.c
Original file line number Diff line number Diff line change
Expand Up @@ -1444,7 +1444,6 @@ void ceph_check_caps(struct ceph_inode_info *ci, int flags,
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;
Expand Down

0 comments on commit 0840d8a

Please sign in to comment.