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)
commitefefb1438be269897585934fc6c05deb4dfa01ce
tree41d3bf63789bc656421dfbd651bf38caf580ec03
parentff782e0a131c7f669445c07fe5c7ba91e043b7ed
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