summaryrefslogtreecommitdiff
path: root/libbcachefs/fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs/fs.h')
-rw-r--r--libbcachefs/fs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbcachefs/fs.h b/libbcachefs/fs.h
index 40dbd577..59f9f7ae 100644
--- a/libbcachefs/fs.h
+++ b/libbcachefs/fs.h
@@ -146,6 +146,8 @@ struct bch_inode_info *
__bch2_create(struct mnt_idmap *, struct bch_inode_info *,
struct dentry *, umode_t, dev_t, subvol_inum, unsigned);
+int bch2_inode_or_descendents_is_open(struct btree_trans *trans, struct bpos p);
+
int bch2_fs_quota_transfer(struct bch_fs *,
struct bch_inode_info *,
struct bch_qid,
@@ -179,8 +181,6 @@ void bch2_inode_update_after_write(struct btree_trans *,
int __must_check bch2_write_inode(struct bch_fs *, struct bch_inode_info *,
inode_set_fn, void *, unsigned);
-bool bch2_inode_is_open(struct bch_fs *c, struct bpos p);
-
int bch2_setattr_nonsize(struct mnt_idmap *,
struct bch_inode_info *,
struct iattr *);
@@ -198,7 +198,7 @@ int bch2_vfs_init(void);
#define bch2_inode_update_after_write(_trans, _inode, _inode_u, _fields) ({ do {} while (0); })
-static inline bool bch2_inode_is_open(struct bch_fs *c, struct bpos p) { return false; }
+static inline int bch2_inode_or_descendents_is_open(struct btree_trans *trans, struct bpos p) { return 0; }
static inline void bch2_evict_subvolume_inodes(struct bch_fs *c,
snapshot_id_list *s) {}