summaryrefslogtreecommitdiff
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorYaowei Bai <baiyaowei@cmss.chinamobile.com>2015-11-17 09:40:11 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2015-12-07 05:17:13 +0300
commita6e5787fc8fc9c88290a7bceed07aa4d14029fa7 (patch)
tree9d26dfb40f817faee3a49bb5ef13c86a15da6d36 /include/linux/fs.h
parent25ab4c9b1ccb64b1433cecd3f19f28fe300c1576 (diff)
downloadlinux-a6e5787fc8fc9c88290a7bceed07aa4d14029fa7.tar.xz
fs/dcache.c: is_subdir can be boolean
This patch makes is_subdir 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 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index aab8094656e4..4b23def18aa9 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -2532,7 +2532,7 @@ extern ssize_t __kernel_write(struct file *, const char *, size_t, loff_t *);
extern struct file * open_exec(const char *);
/* fs/dcache.c -- generic fs support functions */
-extern int is_subdir(struct dentry *, struct dentry *);
+extern bool is_subdir(struct dentry *, struct dentry *);
extern bool path_is_under(struct path *, struct path *);
extern char *file_path(struct file *, char *, int);