diff options
Diffstat (limited to 'fs/internal.h')
-rw-r--r-- | fs/internal.h | 6 |
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 | ||
17 | extern struct super_block *blockdev_superblock; | 18 | extern struct super_block *blockdev_superblock; |
18 | extern void __init bdev_cache_init(void); | 19 | extern 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 | ||
23 | static 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 |