posix_acl: Add set_posix_acl
authorAndreas Gruenbacher <agruenba@redhat.com>
Wed, 22 Jun 2016 21:57:25 +0000 (23:57 +0200)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 24 Jun 2016 16:11:34 +0000 (12:11 -0400)
commit485e71e8fb6356c08c7fc6bcce4bf02c9a9a663f
treed5587256360eb42e819d5760e6e6db8250ccfa80
parent8c7245abda877d4689b3371db8ae2a4400d7d9ce
posix_acl: Add set_posix_acl

Factor out part of posix_acl_xattr_set into a common function that takes
a posix_acl, which nfsd can also call.

The prototype already exists in include/linux/posix_acl.h.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Cc: stable@vger.kernel.org
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/posix_acl.c