From: Yan Date: Thu, 25 Oct 2007 19:49:25 +0000 (-0400) Subject: Fix ENOTEMPTY check in btrfs_rmdir X-Git-Tag: v2.6.29-rc1~27^2~9^2~55^2~56^2~30^2~434 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=134d45120164141c0847daf5222aaec77e04724a;p=pandora-kernel.git Fix ENOTEMPTY check in btrfs_rmdir The ENOTEMPTY check in btrfs_rmdir isn't reliable. It's possible that the backward search finds . or .. at first, then some other directory entry. In that case, btrfs_rmdir delete . or .. improperly. The patch also fixes a fs_mutex unlock issue in btrfs_rmdir. -- Signed-off-by: Chris Mason --- Reading git-diff-tree failed