summaryrefslogtreecommitdiffstats
path: root/fs/xattr_acl.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2010-08-10 11:41:38 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2010-08-11 00:28:21 -0400
commit98dc568bc2ebefe4c0cb315a7fb7eff8bbb43176 (patch)
tree54cc4353683020df6669bc8b1aa5b55ebe3ab1f3 /fs/xattr_acl.c
parent7ae6bdbd9b9d42da53ea809875c0a6cda3de694c (diff)
downloadop-kernel-dev-98dc568bc2ebefe4c0cb315a7fb7eff8bbb43176.zip
op-kernel-dev-98dc568bc2ebefe4c0cb315a7fb7eff8bbb43176.tar.gz
vfs: __d_path: dont prepend the name of the root dentry
In the old times pseudo-filesystems set the name of theroot dentry to some prefix like "pipe:" and the name of the child dentry to "[123]" and relied on a hack in __d_path() to replace the preceding slash with the root's name to get "pipe:[123]". Then the d_dname() dentry operation was introduced which solved the same problem without having to pre-fill the name in each dentry. Currently the following pseudo filesystems exist in the kernel: perfmon mtd anon_inode bdev pipe socket Of these only perfmon, anon_inode, pipe and socket create sub-dentries, all of which have now been switched to using d_dname(). bdev and mtd only create inodes. This means that now the hack to overwrite the slash can be removed, so for unreachable paths (e.g. within a detached mount) the path string won't be polluted with garbage. For these cases a subsequent patch will add a prefix, indicating that the path is unreachable. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/xattr_acl.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud