]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
client: no need to check mask before calling _getattr in statx
authorJeff Layton <jlayton@redhat.com>
Fri, 14 Oct 2016 14:59:27 +0000 (10:59 -0400)
committerJeff Layton <jlayton@redhat.com>
Fri, 14 Oct 2016 15:00:33 +0000 (11:00 -0400)
commite3958efcbb220fa1eecd33e4061a9da882956a3f
tree67d06569fe4e60f937d84e6337a94ed8e2547c9f
parentdb2e7e0811679b4c284e105536ebf3327cc02ffc
client: no need to check mask before calling _getattr in statx

If the mask is zero, then the cap check will succeed, "yes" will be
true and we'll end up returning quickly from _getattr anyway.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/client/Client.cc