]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: update the dlease for the hashed dentry when removing
authorXiubo Li <xiubli@redhat.com>
Wed, 30 Mar 2022 04:21:12 +0000 (12:21 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 25 Apr 2022 09:07:47 +0000 (11:07 +0200)
commit2bc5e7ea1cc728975296cdc4020131bb5172c6a0
treef5a91db283006342768b44716e495c2cc1adb2c9
parent03243e8bbc7e0d07a37d47ed52c2aac53c9b6e7f
ceph: update the dlease for the hashed dentry when removing

The MDS will always refresh the dentry lease when removing the files
or directories. And if the dentry is still hashed, we can update
the dentry lease and no need to do the lookup from the MDS later.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Xiubo Li <xiubli@redhat.com>
fs/ceph/inode.c