1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHEFS_FS_COMMON_H
3 #define _BCACHEFS_FS_COMMON_H
7 int bch2_create_trans(struct btree_trans *, u64,
8 struct bch_inode_unpacked *,
9 struct bch_inode_unpacked *,
11 uid_t, gid_t, umode_t, dev_t,
15 int bch2_link_trans(struct btree_trans *, u64,
16 u64, struct bch_inode_unpacked *,
17 struct bch_inode_unpacked *,
20 int bch2_unlink_trans(struct btree_trans *,
21 u64, struct bch_inode_unpacked *,
22 struct bch_inode_unpacked *,
25 int bch2_rename_trans(struct btree_trans *,
26 u64, struct bch_inode_unpacked *,
27 u64, struct bch_inode_unpacked *,
28 struct bch_inode_unpacked *,
29 struct bch_inode_unpacked *,
32 enum bch_rename_mode);
34 bool bch2_reinherit_attrs(struct bch_inode_unpacked *,
35 struct bch_inode_unpacked *);
37 #endif /* _BCACHEFS_FS_COMMON_H */