dcache_{readdir,dir_lseek}(): don't bother with nested ->d_lock
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 6 Jun 2016 22:55:57 +0000 (18:55 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 20 Jun 2016 21:11:26 +0000 (17:11 -0400)
commit274f5b041d3c9c0974a7dd1f66b67c33bb5b0f42
treeb67a10ee704422c2674462c9edec183c6c493a78
parente7d6ef9790bc281f5c29d0132b68031248523fe8
dcache_{readdir,dir_lseek}(): don't bother with nested ->d_lock

Make sure that directory is locked shared in dcache_dir_lseek();
for dcache_readdir() it's already tru, and that's enough to make
simple_positive() stable.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/libfs.c