diff options
Diffstat (limited to 'libbcache/fs.h')
-rw-r--r-- | libbcache/fs.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libbcache/fs.h b/libbcache/fs.h index aec6159b..933fb6de 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 */ |