]> git.apps.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>
Mon, 26 Apr 2021 13:14:27 +0000 (09:14 -0400)
No need to include this check since _getattr() checks this anyway.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
src/client/Client.cc

index 7c1157cb4234977b29c78c4db10fb37fd06c341c..a99e1cd6ad87af2313e826920acef29f6ac6d3a1 100644 (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;