fs-common.h (184b1dc1a6bf4bc53a1c71bf14120498aad67ff5) | fs-common.h (6fed42bb7750e217b0d1169ccfccc7639a3e1d3f) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef _BCACHEFS_FS_COMMON_H 3#define _BCACHEFS_FS_COMMON_H 4 5struct posix_acl; 6 | 1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef _BCACHEFS_FS_COMMON_H 3#define _BCACHEFS_FS_COMMON_H 4 5struct posix_acl; 6 |
7int bch2_create_trans(struct btree_trans *, u64, | 7#define BCH_CREATE_TMPFILE (1U << 0) 8 9int bch2_create_trans(struct btree_trans *, subvol_inum, |
8 struct bch_inode_unpacked *, 9 struct bch_inode_unpacked *, 10 const struct qstr *, 11 uid_t, gid_t, umode_t, dev_t, 12 struct posix_acl *, | 10 struct bch_inode_unpacked *, 11 struct bch_inode_unpacked *, 12 const struct qstr *, 13 uid_t, gid_t, umode_t, dev_t, 14 struct posix_acl *, |
13 struct posix_acl *); | 15 struct posix_acl *, 16 unsigned); |
14 | 17 |
15int bch2_link_trans(struct btree_trans *, u64, 16 u64, struct bch_inode_unpacked *, 17 struct bch_inode_unpacked *, | 18int bch2_link_trans(struct btree_trans *, 19 subvol_inum, struct bch_inode_unpacked *, 20 subvol_inum, struct bch_inode_unpacked *, |
18 const struct qstr *); 19 | 21 const struct qstr *); 22 |
20int bch2_unlink_trans(struct btree_trans *, 21 u64, struct bch_inode_unpacked *, | 23int bch2_unlink_trans(struct btree_trans *, subvol_inum, |
22 struct bch_inode_unpacked *, | 24 struct bch_inode_unpacked *, |
25 struct bch_inode_unpacked *, |
|
23 const struct qstr *); 24 25int bch2_rename_trans(struct btree_trans *, | 26 const struct qstr *); 27 28int bch2_rename_trans(struct btree_trans *, |
26 u64, struct bch_inode_unpacked *, 27 u64, struct bch_inode_unpacked *, | 29 subvol_inum, struct bch_inode_unpacked *, 30 subvol_inum, struct bch_inode_unpacked *, |
28 struct bch_inode_unpacked *, 29 struct bch_inode_unpacked *, 30 const struct qstr *, 31 const struct qstr *, 32 enum bch_rename_mode); 33 34bool bch2_reinherit_attrs(struct bch_inode_unpacked *, 35 struct bch_inode_unpacked *); 36 37#endif /* _BCACHEFS_FS_COMMON_H */ | 31 struct bch_inode_unpacked *, 32 struct bch_inode_unpacked *, 33 const struct qstr *, 34 const struct qstr *, 35 enum bch_rename_mode); 36 37bool bch2_reinherit_attrs(struct bch_inode_unpacked *, 38 struct bch_inode_unpacked *); 39 40#endif /* _BCACHEFS_FS_COMMON_H */ |