Miklos Szeredi
98dc568bc2
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 >
2010-08-11 00:28:21 -04:00
..
2010-08-11 00:08:00 -04:00
2010-08-09 16:47:39 -04:00
2010-08-09 16:48:51 -04:00
2010-08-10 11:26:52 -07:00
2010-05-27 09:12:56 -07:00
2010-05-27 09:12:41 -07:00
2010-06-16 18:05:05 +02:00
2010-08-09 16:48:53 -04:00
2010-08-09 16:48:55 -04:00
2010-08-11 00:28:20 -04:00
2010-07-27 13:11:17 -07:00
2010-08-10 11:26:52 -07:00
2010-08-09 16:48:37 -04:00
2010-06-04 17:16:29 -04:00
2010-08-09 16:47:51 -04:00
2010-05-19 22:41:57 -04:00
2010-05-21 18:31:12 -04:00
2010-08-05 14:23:45 -05:00
2010-08-10 11:26:52 -07:00
2010-08-09 16:48:24 -04:00
2010-08-09 16:48:45 -04:00
2010-08-10 11:26:52 -07:00
2010-08-10 11:26:52 -07:00
2010-08-09 16:48:01 -04:00
2010-08-10 11:26:52 -07:00
2010-07-24 11:10:09 +02:00
2010-08-10 11:26:52 -07:00
2010-08-10 11:26:52 -07:00
2010-08-09 16:48:37 -04:00
2010-08-09 16:48:37 -04:00
2010-08-09 16:48:15 -04:00
2010-08-09 16:48:17 -04:00
2010-08-09 16:48:16 -04:00
2010-08-09 16:47:49 -04:00
2010-05-27 09:12:56 -07:00
2010-07-21 16:01:47 +02:00
2010-08-07 13:03:53 -07:00
2010-08-10 11:49:21 -07:00
2010-08-09 16:48:17 -04:00
2010-03-30 22:02:32 +09:00
2010-08-09 16:48:35 -04:00
2010-08-09 16:47:53 -04:00
2010-08-10 11:26:52 -07:00
2010-08-10 11:26:52 -07:00
2010-03-30 22:02:32 +09:00
2010-08-10 11:39:13 -07:00
2010-08-10 11:26:52 -07:00
2010-08-10 11:39:13 -07:00
2010-08-09 16:48:37 -04:00
2010-08-10 11:26:52 -07:00
2010-08-10 11:47:36 -07:00
2010-08-06 09:23:07 -07:00
2010-08-11 00:28:20 -04:00
2010-08-09 16:47:31 -04:00
2010-08-10 11:26:52 -07:00
2010-08-09 16:47:39 -04:00
2010-08-10 11:26:52 -07:00
2010-08-09 16:48:00 -04:00
2010-05-23 08:27:42 +01:00
2010-08-10 11:26:52 -07:00
2010-08-11 00:24:18 -04:00
2010-08-10 11:26:52 -07:00
2010-08-10 11:26:52 -07:00
2010-08-09 16:48:02 -04:00
2010-08-10 11:26:52 -07:00
2010-08-05 13:21:23 -07:00
2010-05-27 22:03:05 -04:00
2010-08-09 16:47:39 -04:00
2010-05-27 22:05:02 -04:00
2010-03-30 22:02:32 +09:00
2010-06-01 08:11:06 -07:00
2010-03-06 11:26:46 -08:00
2010-03-30 22:02:32 +09:00
2010-06-29 15:29:31 -07:00
2010-08-09 16:48:37 -04:00
2010-03-30 22:02:32 +09:00
2010-03-30 22:02:32 +09:00
2010-03-19 08:05:10 +01:00
2010-08-10 11:26:52 -07:00
2010-08-09 16:47:33 -04:00
2010-08-06 09:17:02 -07:00
2010-03-06 11:26:45 -08:00
2010-08-04 15:31:02 -07:00
2010-08-10 11:39:13 -07:00
2010-08-11 00:28:21 -04:00
2010-08-09 16:47:29 -04:00
2010-08-09 16:47:44 -04:00
2010-03-30 22:02:32 +09:00
2010-05-11 17:43:58 +02:00
2010-08-10 11:39:13 -07:00
2010-06-29 15:29:32 -07:00
2010-03-30 22:02:32 +09:00
2010-07-28 10:18:51 -04:00
2010-06-14 16:37:26 -07:00
2010-03-30 22:02:32 +09:00
2010-08-11 00:28:20 -04:00
2010-08-10 11:26:52 -07:00
2010-05-21 18:31:18 -04:00
2010-08-10 11:39:13 -07:00
2010-05-21 18:31:16 -04:00
2010-05-21 18:31:18 -04:00
2010-03-30 22:02:32 +09:00
2010-07-20 17:30:22 +02:00
2010-08-09 16:47:39 -04:00
2010-03-08 16:55:37 +01:00
2010-05-21 18:31:17 -04:00
2010-08-09 16:48:47 -04:00
2010-03-30 22:02:32 +09:00
2010-08-11 00:28:20 -04:00
2010-08-11 00:28:20 -04:00
2010-08-10 11:39:13 -07:00
2010-06-10 19:08:34 +02:00
2010-07-28 09:58:32 -04:00
2010-08-09 20:45:05 -07:00
2010-03-12 15:52:32 -08:00
2010-03-07 15:48:26 -08:00
2010-03-30 22:02:32 +09:00
2010-06-30 08:12:37 +02:00
2010-08-09 16:48:44 -04:00
2010-08-09 16:49:02 -04:00
2010-08-09 16:47:43 -04:00
2010-05-20 13:21:42 -07:00
2010-03-30 22:02:32 +09:00
2010-05-21 18:31:18 -04:00