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 <vshankar@redhat.com>
This commit is contained in:
Venky Shankar 2021-04-12 06:36:12 -04:00
parent 813933f81e
commit 52c672350f

View File

@ -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;