diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-10-04 16:25:58 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2019-10-04 16:26:48 -0400 |
commit | 62f5e4fa67dde8255fa18a06d5354cdca02b6fc7 (patch) | |
tree | 1819ccb1adf6d449d7b4e7958e344ad963700f7b /libbcachefs/fs-common.h | |
parent | b540b170c9c277ffc5bdaf6b05e21c30f142dfc9 (diff) |
Update bcachefs sources to ce9293e9d0 bcachefs: Factor out fs-common.c
Diffstat (limited to 'libbcachefs/fs-common.h')
-rw-r--r-- | libbcachefs/fs-common.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/libbcachefs/fs-common.h b/libbcachefs/fs-common.h new file mode 100644 index 00000000..7adcfcf9 --- /dev/null +++ b/libbcachefs/fs-common.h @@ -0,0 +1,37 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _BCACHEFS_FS_COMMON_H +#define _BCACHEFS_FS_COMMON_H + +struct posix_acl; + +int bch2_create_trans(struct btree_trans *, u64, + struct bch_inode_unpacked *, + struct bch_inode_unpacked *, + const struct qstr *, + uid_t, gid_t, umode_t, dev_t, + struct posix_acl *, + struct posix_acl *); + +int bch2_link_trans(struct btree_trans *, + u64, + u64, struct bch_inode_unpacked *, + const struct qstr *); + +int bch2_unlink_trans(struct btree_trans *, + u64, struct bch_inode_unpacked *, + struct bch_inode_unpacked *, + const struct qstr *); + +int bch2_rename_trans(struct btree_trans *, + u64, struct bch_inode_unpacked *, + u64, struct bch_inode_unpacked *, + struct bch_inode_unpacked *, + struct bch_inode_unpacked *, + const struct qstr *, + const struct qstr *, + enum bch_rename_mode); + +bool bch2_reinherit_attrs(struct bch_inode_unpacked *, + struct bch_inode_unpacked *); + +#endif /* _BCACHEFS_FS_COMMON_H */ |