ceph: remove unused code in ceph_check_caps
diff mbox series

Message ID 20191127122538.33832-1-xiubli@redhat.com
State New
Headers show
Series
  • ceph: remove unused code in ceph_check_caps
Related show

Commit Message

Xiubo Li Nov. 27, 2019, 12:25 p.m. UTC
From: Xiubo Li <xiubli@redhat.com>

Signed-off-by: Xiubo Li <xiubli@redhat.com>
---
 fs/ceph/caps.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Patch
diff mbox series

diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c
index f5a38910a82b..c62e88da4fee 100644
--- a/fs/ceph/caps.c
+++ b/fs/ceph/caps.c
@@ -1828,7 +1828,7 @@  void ceph_check_caps(struct ceph_inode_info *ci, int flags,
 	int mds = -1;   /* keep track of how far we've gone through i_caps list
 			   to avoid an infinite loop on retry */
 	struct rb_node *p;
-	int delayed = 0, sent = 0;
+	int delayed = 0;
 	bool no_delay = flags & CHECK_CAPS_NODELAY;
 	bool queue_invalidate = false;
 	bool tried_invalidate = false;
@@ -2058,7 +2058,6 @@  void ceph_check_caps(struct ceph_inode_info *ci, int flags,
 		}
 
 		mds = cap->mds;  /* remember mds, so we don't repeat */
-		sent++;
 
 		/* __send_cap drops i_ceph_lock */
 		delayed += __send_cap(mdsc, cap, CEPH_CAP_OP_UPDATE, 0,