aboutsummaryrefslogtreecommitdiffstats
path: root/fs/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/internal.h')
-rw-r--r--fs/internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/internal.h b/fs/internal.h
index f662b703bb97..f07147d63255 100644
--- a/fs/internal.h
+++ b/fs/internal.h
@@ -14,10 +14,16 @@
14/* 14/*
15 * block_dev.c 15 * block_dev.c
16 */ 16 */
17#ifdef CONFIG_BLOCK
17extern struct super_block *blockdev_superblock; 18extern struct super_block *blockdev_superblock;
18extern void __init bdev_cache_init(void); 19extern void __init bdev_cache_init(void);
19 20
20#define sb_is_blkdev_sb(sb) ((sb) == blockdev_superblock) 21#define sb_is_blkdev_sb(sb) ((sb) == blockdev_superblock)
22#else
23static inline void bdev_cache_init(void) {}
24
25#define sb_is_blkdev_sb(sb) 0
26#endif
21 27
22/* 28/*
23 * char_dev.c 29 * char_dev.c