From 52c672350fc259faadc7348162ccf06a9ddf91fa Mon Sep 17 00:00:00 2001 From: Venky Shankar Date: Mon, 12 Apr 2021 06:36:12 -0400 Subject: [PATCH] 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 --- src/client/Client.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/Client.cc b/src/client/Client.cc index 7c1157cb423..a99e1cd6ad8 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;