summaryrefslogtreecommitdiff
path: root/libbcache/fs.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2017-03-03 21:09:52 -0900
committerKent Overstreet <kent.overstreet@gmail.com>2017-03-03 23:17:31 -0900
commit171ee48e57be78f4e95954c99851553fa523bf91 (patch)
tree5a54443f074f8f7922eda1451743bb9d2f60368e /libbcache/fs.h
parenta5b5eba7f788bb77cf57f9c94f3474a2d439ab0b (diff)
Delete more unused shim code, update bcache code
Diffstat (limited to 'libbcache/fs.h')
-rw-r--r--libbcache/fs.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libbcache/fs.h b/libbcache/fs.h
index aec6159..933fb6d 100644
--- a/libbcache/fs.h
+++ b/libbcache/fs.h
@@ -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 */