Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332570
b: refs/heads/master
c: b3ae244
h: refs/heads/master
v: v3
  • Loading branch information
David Sterba authored and Chris Mason committed Oct 4, 2012
1 parent 14450dc commit f02d442
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ebb3dad4353b94c12a5cffab4397727c19f088e5
refs/heads/master: b3ae244e7174d981c09ad7a6a68e7909d600aaca
5 changes: 3 additions & 2 deletions trunk/fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -3200,9 +3200,10 @@ static int btrfs_rmdir(struct inode *dir, struct dentry *dentry)
struct btrfs_trans_handle *trans;
unsigned long nr = 0;

if (inode->i_size > BTRFS_EMPTY_DIR_SIZE ||
btrfs_ino(inode) == BTRFS_FIRST_FREE_OBJECTID)
if (inode->i_size > BTRFS_EMPTY_DIR_SIZE)
return -ENOTEMPTY;
if (btrfs_ino(inode) == BTRFS_FIRST_FREE_OBJECTID)
return -EPERM;

trans = __unlink_start_trans(dir, dentry);
if (IS_ERR(trans))
Expand Down

0 comments on commit f02d442

Please sign in to comment.