]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commitdiff
ceph: remove unused CEPH_MDS_LEASE_RELEASE related code
authorXiubo Li <xiubli@redhat.com>
Mon, 28 Mar 2022 02:25:35 +0000 (10:25 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 25 Apr 2022 09:07:47 +0000 (11:07 +0200)
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>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
fs/ceph/mds_client.c

index 459c6f23915f3a0472e5bf359c6090152a3947cb..a89ee866ebbbae98d92f9cc3aa41a5d74960b4e1 100644 (file)
@@ -4424,12 +4424,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);
 }