Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318851
b: refs/heads/master
c: 51a8cf9
h: refs/heads/master
i:
  318849: 2396762
  318847: 3f1e945
v: v3
  • Loading branch information
Liu Bo authored and Chris Mason committed Jul 23, 2012
1 parent c857f90 commit 68d39a1
Show file tree
Hide file tree
Showing 2 changed files with 5 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: c0901581ad077004145c9ee80e843fba71c100b8
refs/heads/master: 51a8cf9d2d97017d334f33f1b39067bd2f03bc49
6 changes: 4 additions & 2 deletions trunk/fs/btrfs/btrfs_inode.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,10 @@ static inline void btrfs_i_size_write(struct inode *inode, u64 size)
static inline bool btrfs_is_free_space_inode(struct btrfs_root *root,
struct inode *inode)
{
if (root == root->fs_info->tree_root ||
BTRFS_I(inode)->location.objectid == BTRFS_FREE_INO_OBJECTID)
if (root == root->fs_info->tree_root &&
btrfs_ino(inode) != BTRFS_BTREE_INODE_OBJECTID)
return true;
if (BTRFS_I(inode)->location.objectid == BTRFS_FREE_INO_OBJECTID)
return true;
return false;
}
Expand Down

0 comments on commit 68d39a1

Please sign in to comment.