hostfs: simplify locking
authorNick Piggin <npiggin@kernel.dk>
Fri, 7 Jan 2011 06:49:29 +0000 (17:49 +1100)
committerNick Piggin <npiggin@kernel.dk>
Fri, 7 Jan 2011 06:50:20 +0000 (17:50 +1100)
commitec2447c278ee973d35f38e53ca16ba7f965ae33d
tree5d17a0523c301b8c71c0f198ffe7782c5e9c0ea9
parentb1e6a015a580ad145689ad1d6b4aa0e03e6c868b
hostfs: simplify locking

Remove dcache_lock locking from hostfs filesystem, and move it into dcache
helpers. All that is required is a coherent path name. Protection from
concurrent modification of the namespace after path name generation is not
provided in current code, because dcache_lock is dropped before the path is
used.

Signed-off-by: Nick Piggin <npiggin@kernel.dk>
fs/dcache.c
fs/hostfs/hostfs_kern.c
include/linux/dcache.h