posix_acl: Add set_posix_acl
authorAndreas Gruenbacher <agruenba@redhat.com>
Wed, 22 Jun 2016 21:57:25 +0000 (23:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jul 2016 16:47:30 +0000 (09:47 -0700)
commitc3fa141c1f288ac785c82ead9d06d1b5acd76d60
tree28c79555c420fa3f00ac9c841de530c045e51bea
parentf78ffdc2bb3c88792636f14d732cc1fce4073685
posix_acl: Add set_posix_acl

commit 485e71e8fb6356c08c7fc6bcce4bf02c9a9a663f upstream.

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: Christoph Hellwig <hch@infradead.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/posix_acl.c