fs/block_dev.c: make sb_is_blkdev_sb return bool when CONFIG_BLOCK undefined
authorYaowei Bai <baiyaowei@cmss.chinamobile.com>
Tue, 17 Nov 2015 06:40:09 +0000 (14:40 +0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 7 Dec 2015 02:17:12 +0000 (21:17 -0500)
Currently when CONFIG_BLOCK is defined sb_is_blkdev_sb returns bool,
while when CONFIG_BLOCK is not defined it returns int. Let's keep
consistent to make sb_is_blkdev_sb return bool as well when CONFIG_BLOCK
isn't defined.

No functional change.

Signed-off-by: Yaowei Bai <baiyaowei@cmss.chinamobile.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/fs.h

index 3aa51425416148f5bec14b6faf4e6f4e81370a22..11505af0d3589a043747776e236b144f45ac3f2b 100644 (file)
@@ -2291,9 +2291,9 @@ static inline void iterate_bdevs(void (*f)(struct block_device *, void *), void
 {
 }
 
-static inline int sb_is_blkdev_sb(struct super_block *sb)
+static inline bool sb_is_blkdev_sb(struct super_block *sb)
 {
-       return 0;
+       return false;
 }
 #endif
 extern int sync_filesystem(struct super_block *);
This page took 0.029043 seconds and 5 git commands to generate.