mirror of
https://github.com/ceph/ceph
synced 2025-02-21 01:47:25 +00:00
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:
parent
813933f81e
commit
52c672350f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user