linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/5] fs/block_dev.c: make sb_is_blkdev_sb return bool when CONFIG_BLOCK undefined
@ 2015-11-17  6:40 Yaowei Bai
  2015-11-17  6:40 ` [PATCH 2/5] fs/namespace.c: path_is_under can be boolean Yaowei Bai
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Yaowei Bai @ 2015-11-17  6:40 UTC (permalink / raw)
  To: akpm, viro; +Cc: linux-fsdevel, linux-kernel

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>
---
 include/linux/fs.h | 4 ++--
 1 file 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 *);
-- 
1.9.1




^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-11-19 13:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-17  6:40 [PATCH 1/5] fs/block_dev.c: make sb_is_blkdev_sb return bool when CONFIG_BLOCK undefined Yaowei Bai
2015-11-17  6:40 ` [PATCH 2/5] fs/namespace.c: path_is_under can be boolean Yaowei Bai
2015-11-17  6:40 ` [PATCH 3/5] fs/dcache.c: is_subdir " Yaowei Bai
2015-11-17 14:25 ` [PATCH 1/5] fs/block_dev.c: make sb_is_blkdev_sb return bool when CONFIG_BLOCK undefined Jeff Moyer
2015-11-19 13:00 ` [PATCH 4/5] fs/bad_inode.c: is_bad_inode can be boolean Yaowei Bai
2015-11-19 13:00   ` [PATCH 5/5] fs/attr.c: is_sxid " Yaowei Bai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).