Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

posix_acl: Unexport acl_by_type and make it static

acl_by_type(inode, type) returns a pointer to either inode->i_acl or
inode->i_default_acl depending on type. This is useful in
fs/posix_acl.c, but should never have been visible outside that file.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

authored by

Andreas Gruenbacher and committed by
Al Viro
04c57f45 b8a7a3a6

+1 -3
+1 -2
fs/posix_acl.c
··· 21 21 #include <linux/export.h> 22 22 #include <linux/user_namespace.h> 23 23 24 - struct posix_acl **acl_by_type(struct inode *inode, int type) 24 + static struct posix_acl **acl_by_type(struct inode *inode, int type) 25 25 { 26 26 switch (type) { 27 27 case ACL_TYPE_ACCESS: ··· 32 32 BUG(); 33 33 } 34 34 } 35 - EXPORT_SYMBOL(acl_by_type); 36 35 37 36 struct posix_acl *get_cached_acl(struct inode *inode, int type) 38 37 {
-1
include/linux/posix_acl.h
··· 99 99 extern int simple_set_acl(struct inode *, struct posix_acl *, int); 100 100 extern int simple_acl_create(struct inode *, struct inode *); 101 101 102 - struct posix_acl **acl_by_type(struct inode *inode, int type); 103 102 struct posix_acl *get_cached_acl(struct inode *inode, int type); 104 103 struct posix_acl *get_cached_acl_rcu(struct inode *inode, int type); 105 104 void set_cached_acl(struct inode *inode, int type, struct posix_acl *acl);