https://github.com/torvalds/linux
Revision a3a065e3f13da8a3470ed09c7f38aad256083726 authored by Nick Piggin on 18 November 2009, 04:30:19 UTC, committed by Al Viro on 17 December 2009, 15:51:40 UTC
Filesystems outside the regular namespace do not have to clear DCACHE_UNHASHED
in order to have a working /proc/$pid/fd/XXX. Nothing in proc prevents the
fd link from being used if its dentry is not in the hash.

Also, it does not get put into the dcache hash if DCACHE_UNHASHED is clear;
that depends on the filesystem calling d_add or d_rehash.

So delete the misleading comments and needless code.

Acked-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent b9aff02
History
Tip revision: a3a065e3f13da8a3470ed09c7f38aad256083726 authored by Nick Piggin on 18 November 2009, 04:30:19 UTC
fs: no games with DCACHE_UNHASHED
Tip revision: a3a065e
File Mode Size
Kconfig -rw-r--r-- 3.1 KB
Kconfig.iosched -rw-r--r-- 1.8 KB
Makefile -rw-r--r-- 582 bytes
blk-barrier.c -rw-r--r-- 10.6 KB
blk-cgroup.c -rw-r--r-- 9.1 KB
blk-cgroup.h -rw-r--r-- 3.6 KB
blk-core.c -rw-r--r-- 67.4 KB
blk-exec.c -rw-r--r-- 2.6 KB
blk-integrity.c -rw-r--r-- 9.9 KB
blk-ioc.c -rw-r--r-- 4.0 KB
blk-iopoll.c -rw-r--r-- 5.9 KB
blk-map.c -rw-r--r-- 8.1 KB
blk-merge.c -rw-r--r-- 10.8 KB
blk-settings.c -rw-r--r-- 23.5 KB
blk-softirq.c -rw-r--r-- 4.1 KB
blk-sysfs.c -rw-r--r-- 12.9 KB
blk-tag.c -rw-r--r-- 9.9 KB
blk-timeout.c -rw-r--r-- 5.7 KB
blk.h -rw-r--r-- 4.5 KB
bsg.c -rw-r--r-- 23.4 KB
cfq-iosched.c -rw-r--r-- 98.7 KB
compat_ioctl.c -rw-r--r-- 22.1 KB
deadline-iosched.c -rw-r--r-- 11.4 KB
elevator.c -rw-r--r-- 24.3 KB
genhd.c -rw-r--r-- 29.9 KB
ioctl.c -rw-r--r-- 8.2 KB
noop-iosched.c -rw-r--r-- 2.6 KB
scsi_ioctl.c -rw-r--r-- 18.0 KB

back to top