diff options
author | Xiubo Li <xiubli@redhat.com> | 2022-03-28 05:25:35 +0300 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2022-05-25 21:45:13 +0300 |
commit | 6c1dc50284c4dab9f1e563efba6f9c4a47af894a (patch) | |
tree | 58ff5b804260c223c27e8e72ff5c1e4db33af830 /fs/ceph | |
parent | 3302ffd44c3d70e77ad5764d15f5028a6ade540a (diff) | |
download | linux-6c1dc50284c4dab9f1e563efba6f9c4a47af894a.tar.xz |
ceph: remove unused CEPH_MDS_LEASE_RELEASE related code
The ceph_mdsc_lease_release() has been removed by commit 8aa152c77890
(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 <xiubli@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph')
-rw-r--r-- | fs/ceph/mds_client.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index 00c3de177dd6..7b9a16dc8353 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c @@ -4396,12 +4396,6 @@ void ceph_mdsc_lease_send_msg(struct ceph_mds_session *session, memcpy((void *)(lease + 1) + 4, dentry->d_name.name, dentry->d_name.len); spin_unlock(&dentry->d_lock); - /* - * if this is a preemptive lease RELEASE, no need to - * flush request stream, since the actual request will - * soon follow. - */ - msg->more_to_follow = (action == CEPH_MDS_LEASE_RELEASE); ceph_con_send(&session->s_con, msg); } |