]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfe6b8b96f92a84f62411cbd2382b8eacb6ef61bf
tree5d17a0523c301b8c71c0f198ffe7782c5e9c0ea9
parentfd0243a0005c832cb54d48a45b9d0d2bdc9f3c6a
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