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>
This commit is contained in:
Yaowei Bai
2015-11-17 14:40:10 +08:00
committed by Al Viro
parent 3e004eea56
commit 25ab4c9b1c
2 changed files with 3 additions and 3 deletions

View File

@@ -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);