]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
fs: change d_compare for rcu-walk
authorNick Piggin <npiggin@kernel.dk>
Fri, 7 Jan 2011 06:49:27 +0000 (17:49 +1100)
committerNick Piggin <npiggin@kernel.dk>
Fri, 7 Jan 2011 06:50:19 +0000 (17:50 +1100)
commit621e155a3591962420eacdd39f6f0aa29ceb221e
tree387a9fb396f1bf24514b712c294182e36ba51076
parentfb2d5b86aff355a27ebfc132d3c99f4a940cc3fe
fs: change d_compare for rcu-walk

Change d_compare so it may be called from lock-free RCU lookups. This
does put significant restrictions on what may be done from the callback,
however there don't seem to have been any problems with in-tree fses.
If some strange use case pops up that _really_ cannot cope with the
rcu-walk rules, we can just add new rcu-unaware callbacks, which would
cause name lookup to drop out of rcu-walk mode.

For in-tree filesystems, this is just a mechanical change.

Signed-off-by: Nick Piggin <npiggin@kernel.dk>
23 files changed:
Documentation/filesystems/Locking
Documentation/filesystems/porting
Documentation/filesystems/vfs.txt
drivers/staging/smbfs/dir.c
fs/adfs/dir.c
fs/affs/namei.c
fs/cifs/dir.c
fs/dcache.c
fs/fat/namei_msdos.c
fs/fat/namei_vfat.c
fs/hfs/hfs_fs.h
fs/hfs/string.c
fs/hfsplus/hfsplus_fs.h
fs/hfsplus/unicode.c
fs/hpfs/dentry.c
fs/isofs/inode.c
fs/isofs/namei.c
fs/jfs/namei.c
fs/ncpfs/dir.c
fs/ncpfs/ncplib_kernel.h
fs/proc/proc_sysctl.c
include/linux/dcache.h
include/linux/ncp_fs.h