Skip to content

Commit 6c1dc50

Browse files
lxbszidryomov
authored andcommitted
ceph: remove unused CEPH_MDS_LEASE_RELEASE related code
The ceph_mdsc_lease_release() has been removed by commit 8aa152c (ceph: remove ceph_mdsc_lease_release). ceph_mdsc_lease_send_msg will never be called with CEPH_MDS_LEASE_RELEASE. Signed-off-by: Xiubo Li <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
1 parent 3302ffd commit 6c1dc50

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

fs/ceph/mds_client.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4396,12 +4396,6 @@ void ceph_mdsc_lease_send_msg(struct ceph_mds_session *session,
43964396
memcpy((void *)(lease + 1) + 4,
43974397
dentry->d_name.name, dentry->d_name.len);
43984398
spin_unlock(&dentry->d_lock);
4399-
/*
4400-
* if this is a preemptive lease RELEASE, no need to
4401-
* flush request stream, since the actual request will
4402-
* soon follow.
4403-
*/
4404-
msg->more_to_follow = (action == CEPH_MDS_LEASE_RELEASE);
44054399

44064400
ceph_con_send(&session->s_con, msg);
44074401
}

0 commit comments

Comments
 (0)