]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: remove redundant caps_issued_mask() call in Client::fstatx()
authorVenky Shankar <vshankar@redhat.com>
Mon, 12 Apr 2021 10:36:12 +0000 (06:36 -0400)
committerVenky Shankar <vshankar@redhat.com>
Thu, 27 May 2021 13:35:21 +0000 (09:35 -0400)
No need to include this check since _getattr() checks this anyway.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit 52c672350fc259faadc7348162ccf06a9ddf91fa)

src/client/Client.cc

index a94876881abda1f2aa04e1f55328f0c39d471066..6fa23145631afcd2ca49367b09b2945829545b4d 100644 (file)
@@ -10501,7 +10501,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;