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>
This commit is contained in:
parent
a6e5787fc8
commit
0e3ef1fe45
2 changed files with 2 additions and 2 deletions
|
@ -192,7 +192,7 @@ EXPORT_SYMBOL(make_bad_inode);
|
||||||
* Returns true if the inode in question has been marked as bad.
|
* 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);
|
return (inode->i_op == &bad_inode_ops);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2371,7 +2371,7 @@ extern void init_special_inode(struct inode *, umode_t, dev_t);
|
||||||
|
|
||||||
/* Invalid inode operations -- fs/bad_inode.c */
|
/* Invalid inode operations -- fs/bad_inode.c */
|
||||||
extern void make_bad_inode(struct inode *);
|
extern void make_bad_inode(struct inode *);
|
||||||
extern int is_bad_inode(struct inode *);
|
extern bool is_bad_inode(struct inode *);
|
||||||
|
|
||||||
#ifdef CONFIG_BLOCK
|
#ifdef CONFIG_BLOCK
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue