]> git.baikalelectronics.ru Git - kernel.git/commit
fs: dcache scale subdirs
authorNick Piggin <npiggin@kernel.dk>
Fri, 7 Jan 2011 06:49:34 +0000 (17:49 +1100)
committerNick Piggin <npiggin@kernel.dk>
Fri, 7 Jan 2011 06:50:21 +0000 (17:50 +1100)
commita7a10559024d0cd721de2928a0e8177225cd895d
treece33b94b34844c09103836cf4cfa4364b742f217
parent3e01efbea6efa084144e404bd2ca0fa05412f7e7
fs: dcache scale subdirs

Protect d_subdirs and d_child with d_lock, except in filesystems that aren't
using dcache_lock for these anyway (eg. using i_mutex).

Note: if we change the locking rule in future so that ->d_child protection is
provided only with ->d_parent->d_lock, it may allow us to reduce some locking.
But it would be an exception to an otherwise regular locking scheme, so we'd
have to see some good results. Probably not worthwhile.

Signed-off-by: Nick Piggin <npiggin@kernel.dk>
16 files changed:
drivers/staging/smbfs/cache.c
drivers/usb/core/inode.c
fs/autofs4/autofs_i.h
fs/autofs4/expire.c
fs/autofs4/root.c
fs/ceph/dir.c
fs/ceph/inode.c
fs/coda/cache.c
fs/dcache.c
fs/libfs.c
fs/ncpfs/dir.c
fs/ncpfs/ncplib_kernel.h
fs/notify/fsnotify.c
include/linux/dcache.h
kernel/cgroup.c
security/selinux/selinuxfs.c