]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: remove negative dentry when deleting subvolumne
authorYan, Zheng <zheng.yan@oracle.com>
Fri, 9 Oct 2009 13:25:16 +0000 (09:25 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 9 Oct 2009 13:25:16 +0000 (09:25 -0400)
commit43b959b4867f99c2e8368990ad38de8767cffa84
tree41d3bf63789bc656421dfbd651bf38caf580ec03
parent0a48d531cbf5b59253700548506d1c678c2799b7
Btrfs: remove negative dentry when deleting subvolumne

The use of btrfs_dentry_delete is removing dentries from the
dcache when deleting subvolumne. btrfs_dentry_delete ignores
negative dentries. This is incorrect since if we don't remove
the negative dentry, its parent dentry can't be removed.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c
fs/btrfs/ioctl.c