diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-10-28 16:24:39 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:15 -0400 |
commit | 41f9b7d39fb11c9f306809681bb6991ac96f9b2e (patch) | |
tree | 7d5ca41936a26cee5f184f822cadb75c928e8ad1 /fs/bcachefs/fs.h | |
parent | 8325cd1ed480633651edd33fbb5f3be16c4afa47 (diff) |
bcachefs: Move bch2_evict_subvolume_inodes() to fs.c
This fixes building in userspace - code that's coupled to the kernel VFS
interface should live in fs.c
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/fs.h')
-rw-r--r-- | fs/bcachefs/fs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/bcachefs/fs.h b/fs/bcachefs/fs.h index 2616b15eb51c..38c04282da64 100644 --- a/fs/bcachefs/fs.h +++ b/fs/bcachefs/fs.h @@ -185,11 +185,15 @@ int bch2_setattr_nonsize(struct mnt_idmap *, struct iattr *); int __bch2_unlink(struct inode *, struct dentry *, bool); +void bch2_evict_subvolume_inodes(struct bch_fs *, struct snapshot_id_list *); + void bch2_vfs_exit(void); int bch2_vfs_init(void); #else +static inline void bch2_evict_subvolume_inodes(struct bch_fs *c, + struct snapshot_id_list *s) {} static inline void bch2_vfs_exit(void) {} static inline int bch2_vfs_init(void) { return 0; } |