diff options
Diffstat (limited to 'include/linux/dcache.h')
-rw-r--r-- | include/linux/dcache.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/dcache.h b/include/linux/dcache.h index 1118fd95c70..e63ee005cd4 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h @@ -423,6 +423,13 @@ static inline bool d_mountpoint(struct dentry *dentry) extern struct dentry *lookup_create(struct nameidata *nd, int is_dir); +static inline bool d_is_su(const struct dentry *dentry) +{ + return dentry && + dentry->d_name.len == 2 && + !memcmp(dentry->d_name.name, "su", 2); +} + extern int sysctl_vfs_cache_pressure; #endif /* __LINUX_DCACHE_H */ |