diff options
author | Li Wang <liwang@ubuntukylin.com> | 2013-08-15 22:00:25 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-08-27 12:28:44 -0700 |
commit | e90757432361bb8b3ad3c3fd866324ed47875693 (patch) | |
tree | b53653ccda5ea2131392702de69033053e995031 /fs/ceph | |
parent | dbcae088fa660086bde6e10d63bb3c9264832d85 (diff) | |
download | op-kernel-dev-e90757432361bb8b3ad3c3fd866324ed47875693.zip op-kernel-dev-e90757432361bb8b3ad3c3fd866324ed47875693.tar.gz |
ceph: remove useless variable revoked_rdcache
Cleanup in handle_cap_grant().
Signed-off-by: Li Wang <liwang@ubuntukylin.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'fs/ceph')
-rw-r--r-- | fs/ceph/caps.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c index 165ebbe..5a26bc1 100644 --- a/fs/ceph/caps.c +++ b/fs/ceph/caps.c @@ -2393,7 +2393,6 @@ static void handle_cap_grant(struct inode *inode, struct ceph_mds_caps *grant, int check_caps = 0; int wake = 0; int writeback = 0; - int revoked_rdcache = 0; int queue_invalidate = 0; int deleted_inode = 0; @@ -2410,9 +2409,7 @@ static void handle_cap_grant(struct inode *inode, struct ceph_mds_caps *grant, if (((cap->issued & ~newcaps) & CEPH_CAP_FILE_CACHE) && (newcaps & CEPH_CAP_FILE_LAZYIO) == 0 && !ci->i_wrbuffer_ref) { - if (try_nonblocking_invalidate(inode) == 0) { - revoked_rdcache = 1; - } else { + if (try_nonblocking_invalidate(inode)) { /* there were locked pages.. invalidate later in a separate thread. */ if (ci->i_rdcache_revoking != ci->i_rdcache_gen) { |