]> git.hungrycats.org Git - linux/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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 28 Mar 2006 06:47:30 +0000 (22:47 -0800)
commite699844c7b6621f8307ac088735becc3d827ca24
treefb524b7e4fcd4366ae27fd622dbb49ae70fcd024
parent4cb9ff3bdbe7e14dcc2752e5e67ee2e324a03cd5
[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>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/9p/vfs_inode.c