diff --git a/[refs] b/[refs] index 07c70eed0ba1..7fa7dc3fa80c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e835124c2be289515b918f2688ced4249e2de566 +refs/heads/master: a43fb73101eaf6db0b33d22c152b338ab8b3edbb diff --git a/trunk/fs/ceph/caps.c b/trunk/fs/ceph/caps.c index b01c316a8148..73c153092f72 100644 --- a/trunk/fs/ceph/caps.c +++ b/trunk/fs/ceph/caps.c @@ -814,7 +814,7 @@ int __ceph_caps_used(struct ceph_inode_info *ci) used |= CEPH_CAP_PIN; if (ci->i_rd_ref) used |= CEPH_CAP_FILE_RD; - if (ci->i_rdcache_ref || ci->i_rdcache_gen) + if (ci->i_rdcache_ref || ci->vfs_inode.i_data.nrpages) used |= CEPH_CAP_FILE_CACHE; if (ci->i_wr_ref) used |= CEPH_CAP_FILE_WR;