Skip to content
Commit 134d4512 authored by Yan's avatar Yan Committed by Chris Mason
Browse files

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: default avatarChris Mason <chris.mason@oracle.com>
parent 0d9f7f3e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment