ceph: simplify ceph_{get,init}_acl
authorChristoph Hellwig <hch@infradead.org>
Thu, 30 Jan 2014 16:56:36 +0000 (08:56 -0800)
committerSage Weil <sage@inktank.com>
Fri, 31 Jan 2014 03:26:17 +0000 (19:26 -0800)
commit758582361976e9640a1cb9516c0af10cdf8e4753
tree28f1492a90891db65fbf1bd85daa69035052cbc0
parent32d35d44d03c502a2fe2cd9ba9b70d5e220da439
ceph: simplify ceph_{get,init}_acl

 - ->get_acl only gets called after we checked for a cached ACL, so no
   need to call get_cached_acl again.
 - no need to check IS_POSIXACL in ->get_acl, without that it should
   never get set as all the callers that set it already have the check.
 - you should be able to use the full posix_acl_create in CEPH

Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Sage Weil <sage@inktank.com>
fs/ceph/acl.c