fs: change d_delete semantics
authorNick Piggin <npiggin@kernel.dk>
Fri, 7 Jan 2011 06:49:23 +0000 (17:49 +1100)
committerNick Piggin <npiggin@kernel.dk>
Fri, 7 Jan 2011 06:50:18 +0000 (17:50 +1100)
commitfe15ce446beb3a33583af81ffe6c9d01a75314ed
treebc8af66b6dd2d0f21a2a3f48a19975ae2cdbae4e
parent5eef7fa905c814826f518aca2d414ca77508ce30
fs: change d_delete semantics

Change d_delete from a dentry deletion notification to a dentry caching
advise, more like ->drop_inode. Require it to be constant and idempotent,
and not take d_lock. This is how all existing filesystems use the callback
anyway.

This makes fine grained dentry locking of dput and dentry lru scanning
much simpler.

Signed-off-by: Nick Piggin <npiggin@kernel.dk>
22 files changed:
Documentation/filesystems/porting
Documentation/filesystems/vfs.txt
arch/ia64/kernel/perfmon.c
drivers/staging/smbfs/dir.c
fs/9p/vfs_dentry.c
fs/afs/dir.c
fs/btrfs/inode.c
fs/coda/dir.c
fs/configfs/dir.c
fs/dcache.c
fs/gfs2/dentry.c
fs/hostfs/hostfs_kern.c
fs/libfs.c
fs/ncpfs/dir.c
fs/nfs/dir.c
fs/proc/base.c
fs/proc/generic.c
fs/proc/proc_sysctl.c
fs/sysfs/dir.c
include/linux/dcache.h
kernel/cgroup.c
net/sunrpc/rpc_pipe.c