aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorYaowei Bai <baiyaowei@cmss.chinamobile.com>2015-11-17 14:40:10 +0800
committerAl Viro <viro@zeniv.linux.org.uk>2015-12-06 21:17:13 -0500
commit25ab4c9b1ccb64b1433cecd3f19f28fe300c1576 (patch)
tree1a4a7062cc06d8a12d10bc7203fa1dffb8b4610a /include/linux/fs.h
parentfs/block_dev.c: make sb_is_blkdev_sb return bool when CONFIG_BLOCK undefined (diff)
downloadlinux-dev-25ab4c9b1ccb64b1433cecd3f19f28fe300c1576.tar.xz
linux-dev-25ab4c9b1ccb64b1433cecd3f19f28fe300c1576.zip
fs/namespace.c: path_is_under can be boolean
This patch makes path_is_under 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 11505af0d358..aab8094656e4 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -2533,7 +2533,7 @@ extern struct file * open_exec(const char *);
/* fs/dcache.c -- generic fs support functions */
extern int is_subdir(struct dentry *, struct dentry *);
-extern int path_is_under(struct path *, struct path *);
+extern bool path_is_under(struct path *, struct path *);
extern char *file_path(struct file *, char *, int);