aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorLi Wang <liwang@ubuntukylin.com>2013-08-16 01:00:25 -0400
committerSage Weil <sage@inktank.com>2013-08-27 15:28:44 -0400
commite90757432361bb8b3ad3c3fd866324ed47875693 (patch)
treeb53653ccda5ea2131392702de69033053e995031 /fs/ceph
parentdbcae088fa660086bde6e10d63bb3c9264832d85 (diff)
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.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c
index 165ebbeab1c3..5a26bc1dd799 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,
2393 int check_caps = 0; 2393 int check_caps = 0;
2394 int wake = 0; 2394 int wake = 0;
2395 int writeback = 0; 2395 int writeback = 0;
2396 int revoked_rdcache = 0;
2397 int queue_invalidate = 0; 2396 int queue_invalidate = 0;
2398 int deleted_inode = 0; 2397 int deleted_inode = 0;
2399 2398
@@ -2410,9 +2409,7 @@ static void handle_cap_grant(struct inode *inode, struct ceph_mds_caps *grant,
2410 if (((cap->issued & ~newcaps) & CEPH_CAP_FILE_CACHE) && 2409 if (((cap->issued & ~newcaps) & CEPH_CAP_FILE_CACHE) &&
2411 (newcaps & CEPH_CAP_FILE_LAZYIO) == 0 && 2410 (newcaps & CEPH_CAP_FILE_LAZYIO) == 0 &&
2412 !ci->i_wrbuffer_ref) { 2411 !ci->i_wrbuffer_ref) {
2413 if (try_nonblocking_invalidate(inode) == 0) { 2412 if (try_nonblocking_invalidate(inode)) {
2414 revoked_rdcache = 1;
2415 } else {
2416 /* there were locked pages.. invalidate later 2413 /* there were locked pages.. invalidate later
2417 in a separate thread. */ 2414 in a separate thread. */
2418 if (ci->i_rdcache_revoking != ci->i_rdcache_gen) { 2415 if (ci->i_rdcache_revoking != ci->i_rdcache_gen) {