diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-07-16 03:58:54 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-07-16 04:00:44 -0400 |
commit | 76a549d82d1383c02e4aa6f7d9eda2df9f2196b3 (patch) | |
tree | 99dd635807dd308586ed45677b90140e3ab60599 /libbcachefs/acl.h | |
parent | 75c7148e0aff2184c75a52e7c4c58e46e715757b (diff) |
Update bcachefs sources to eab3b355cf bcachefs: trace transaction restarts
Diffstat (limited to 'libbcachefs/acl.h')
-rw-r--r-- | libbcachefs/acl.h | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/libbcachefs/acl.h b/libbcachefs/acl.h index 0be31ee9..e0672430 100644 --- a/libbcachefs/acl.h +++ b/libbcachefs/acl.h @@ -1,6 +1,11 @@ #ifndef _BCACHEFS_ACL_H #define _BCACHEFS_ACL_H +struct bch_inode_unpacked; +struct bch_hash_info; +struct bch_inode_info; +struct posix_acl; + #ifdef CONFIG_BCACHEFS_POSIX_ACL #define BCH_ACL_VERSION 0x0001 @@ -20,20 +25,30 @@ typedef struct { __le32 a_version; } bch_acl_header; -struct posix_acl; +struct posix_acl *bch2_get_acl(struct inode *, int); -extern struct posix_acl *bch2_get_acl(struct inode *, int); -extern int __bch2_set_acl(struct inode *, struct posix_acl *, int); -extern int bch2_set_acl(struct inode *, struct posix_acl *, int); +int bch2_set_acl_trans(struct btree_trans *, + struct bch_inode_unpacked *, + const struct bch_hash_info *, + struct posix_acl *, int); +int bch2_set_acl(struct inode *, struct posix_acl *, int); +int bch2_acl_chmod(struct btree_trans *, struct bch_inode_info *, + umode_t, struct posix_acl **); #else -static inline int __bch2_set_acl(struct inode *inode, struct posix_acl *acl, int type) +static inline int bch2_set_acl_trans(struct btree_trans *trans, + struct bch_inode_unpacked *inode_u, + const struct bch_hash_info *hash_info, + struct posix_acl *acl, int type) { return 0; } -static inline int bch2_set_acl(struct inode *inode, struct posix_acl *acl, int type) +static inline int bch2_acl_chmod(struct btree_trans *trans, + struct bch_inode_info *inode, + umode_t mode, + struct posix_acl **new_acl) { return 0; } |