ceph: check snap first in ceph_set_acl()
authorChengguang Xu <cgxu519@gmx.com>
Sun, 2 Sep 2018 15:21:09 +0000 (23:21 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 22 Oct 2018 08:28:20 +0000 (10:28 +0200)
commit5da207993e396f445d813338dd3540ddd6d26816
treeb2ce4341e636b29e7b76e979f432a550446369f2
parent7d8dc53414c5770afb8b83db096ecab0cd53ec93
ceph: check snap first in ceph_set_acl()

Do the snap check first in ceph_set_acl(), so we can avoid
unnecessary operations when the inode has snap.

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/acl.c