]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - libbcache/fs.h
Delete more unused shim code, update bcache code
[bcachefs-tools-debian] / libbcache / fs.h
index aec6159b58ffdf158acd63b51af10de2da62a53a..933fb6ded96e4ff4dd4be274f9fff3911830ed9e 100644 (file)
@@ -41,6 +41,8 @@ static inline unsigned nlink_bias(umode_t mode)
 
 struct bch_inode_unpacked;
 
+#ifndef NO_BCACHE_FS
+
 /* returns 0 if we want to do the update, or error is passed up */
 typedef int (*inode_set_fn)(struct bch_inode_info *,
                            struct bch_inode_unpacked *, void *);
@@ -53,4 +55,11 @@ int __must_check bch_write_inode(struct cache_set *,
 void bch_fs_exit(void);
 int bch_fs_init(void);
 
+#else
+
+static inline void bch_fs_exit(void) {}
+static inline int bch_fs_init(void) { return 0; }
+
+#endif
+
 #endif /* _BCACHE_FS_H */