summaryrefslogtreecommitdiff
path: root/include/linux/posix_acl.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2013-12-20 17:16:38 +0400
committerAl Viro <viro@zeniv.linux.org.uk>2014-01-26 08:58:16 +0400
commit2982baa2ae31eb23ce29b688ab2f77eb019062f3 (patch)
tree6c4046b236c983f2a8bdc3a760edb71de01fa33e /include/linux/posix_acl.h
parent5c8ebd57b6a51daf53f75b7a16c45090a98a91a4 (diff)
downloadlinux-2982baa2ae31eb23ce29b688ab2f77eb019062f3.tar.xz
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>
Diffstat (limited to 'include/linux/posix_acl.h')
-rw-r--r--include/linux/posix_acl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/posix_acl.h b/include/linux/posix_acl.h
index 7931efe71175..a8d9918c0b20 100644
--- a/include/linux/posix_acl.h
+++ b/include/linux/posix_acl.h
@@ -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 */