fs: add get_acl helper

Factor out the code to get an ACL either from the inode or disk from
check_acl, so that it can be used elsewhere later on.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Christoph Hellwig
2014-01-25 23:58:16 -05:00
committed by Al Viro
parent 5c8ebd57b6
commit 2982baa2ae
3 changed files with 32 additions and 21 deletions
+2
View File
@@ -175,4 +175,6 @@ static inline void cache_no_acl(struct inode *inode)
#endif
}
struct posix_acl *get_acl(struct inode *inode, int type);
#endif /* __LINUX_POSIX_ACL_H */