1
0
Fork 0

fs/block_dev.c: make sb_is_blkdev_sb return bool when CONFIG_BLOCK undefined

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>
hifive-unleashed-5.1
Yaowei Bai 2015-11-17 14:40:09 +08:00 committed by Al Viro
parent 42a561e56f
commit 3e004eea56
1 changed files with 2 additions and 2 deletions

View 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 *);