]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] v9fs: assign dentry ops to negative dentries
authorLatchesar Ionkov <lucho@ionkov.net>
Wed, 22 Mar 2006 08:07:37 +0000 (00:07 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 22 Mar 2006 15:53:55 +0000 (07:53 -0800)
commit919ecc1dc74c44021f5c3e235a0f6197b0e4f4fe
treeded83e560e5f21540e5e23c3b9cb4ed9e8376f94
parent7ba8163bf0e42e96cf751b0d346f5ae3ee5c9344
[PATCH] v9fs: assign dentry ops to negative dentries

If a file is not found in v9fs_vfs_lookup, the function creates negative
dentry, but doesn't assign any dentry ops.  This leaves the negative entry
in the cache (there is no d_delete to mark it for removal).  If the file is
created outside of the mounted v9fs filesystem, the file shows up in the
directory with weird permissions.

This patch assigns the default v9fs dentry ops to the negative dentry.

Signed-off-by: Latchesar Ionkov <lucho@ionkov.net>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/9p/vfs_inode.c