summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorYaowei Bai <baiyaowei@cmss.chinamobile.com>2015-11-19 16:00:11 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2015-12-07 05:17:14 +0300
commit0e3ef1fe453c9f29c30d040cd2559c5cac724e93 (patch)
tree5a54de70fac4317062a499422a5a5f91455cab95 /fs
parenta6e5787fc8fc9c88290a7bceed07aa4d14029fa7 (diff)
downloadlinux-0e3ef1fe453c9f29c30d040cd2559c5cac724e93.tar.xz
fs/bad_inode.c: is_bad_inode can be boolean
This patch makes is_bad_inode return bool to improve readability due to this particular function only using either one or zero as its return value. No functional change. Signed-off-by: Yaowei Bai <baiyaowei@cmss.chinamobile.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/bad_inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bad_inode.c b/fs/bad_inode.c
index 861b1e1c4777..103f5d7c3083 100644
--- a/fs/bad_inode.c
+++ b/fs/bad_inode.c
@@ -192,7 +192,7 @@ EXPORT_SYMBOL(make_bad_inode);
* Returns true if the inode in question has been marked as bad.
*/
-int is_bad_inode(struct inode *inode)
+bool is_bad_inode(struct inode *inode)
{
return (inode->i_op == &bad_inode_ops);
}