From: Venky Shankar Date: Mon, 12 Apr 2021 10:36:12 +0000 (-0400) Subject: client: remove redundant caps_issued_mask() call in Client::fstatx() X-Git-Tag: v17.1.0~2137^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=52c672350fc259faadc7348162ccf06a9ddf91fa;p=ceph.git client: remove redundant caps_issued_mask() call in Client::fstatx() No need to include this check since _getattr() checks this anyway. Signed-off-by: Venky Shankar --- diff --git a/src/client/Client.cc b/src/client/Client.cc index 7c1157cb4234..a99e1cd6ad87 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -10505,7 +10505,7 @@ int Client::fstatx(int fd, struct ceph_statx *stx, const UserPerm& perms, unsigned mask = statx_to_mask(flags, want); int r = 0; - if (mask && !f->inode->caps_issued_mask(mask, true)) { + if (mask) { r = _getattr(f->inode, mask, perms); if (r < 0) { ldout(cct, 3) << "fstatx exit on error!" << dendl;