summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaowei Bai <baiyaowei@cmss.chinamobile.com>2015-11-17 14:40:09 +0800
committerAl Viro <viro@zeniv.linux.org.uk>2015-12-06 21:17:12 -0500
commit3e004eea56b4f2cb6768ebe9000c830eda0c71b1 (patch)
tree1463012966d7585d432ad26230beeb2c0c1fa880
parent42a561e56fb9b581a4adb89efe54a387e3d4dc1b (diff)
downloadop-kernel-dev-3e004eea56b4f2cb6768ebe9000c830eda0c71b1.zip
op-kernel-dev-3e004eea56b4f2cb6768ebe9000c830eda0c71b1.tar.gz
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>
-rw-r--r--include/linux/fs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 3aa5142..11505af 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -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 *);
OpenPOWER on IntegriCloud