mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 21:51:40 +00:00
ceph: remove redundant Lsx caps check
The newcaps has already included the Ls, no need to check it again. Signed-off-by: Xiubo Li <xiubli@redhat.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
parent
94cc0877ca
commit
76bdbc7ac7
@ -3375,8 +3375,7 @@ static void handle_cap_grant(struct inode *inode,
|
||||
if ((newcaps & CEPH_CAP_LINK_SHARED) &&
|
||||
(extra_info->issued & CEPH_CAP_LINK_EXCL) == 0) {
|
||||
set_nlink(inode, le32_to_cpu(grant->nlink));
|
||||
if (inode->i_nlink == 0 &&
|
||||
(newcaps & (CEPH_CAP_LINK_SHARED | CEPH_CAP_LINK_EXCL)))
|
||||
if (inode->i_nlink == 0)
|
||||
deleted_inode = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user