Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253094
b: refs/heads/master
c: ca456ae
h: refs/heads/master
v: v3
  • Loading branch information
liubo authored and Chris Mason committed Jun 4, 2011
1 parent 4977deb commit 903a913
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 211f96c24f117fcc6e9e2431e40d92f4de22625e
refs/heads/master: ca456ae280c0646e1e571c3b9a3834c55e90adfe
6 changes: 6 additions & 0 deletions trunk/fs/btrfs/inode-map.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,12 @@ int btrfs_save_ino_cache(struct btrfs_root *root,
int prealloc;
bool retry = false;

/* only fs tree and subvol/snap needs ino cache */
if (root->root_key.objectid != BTRFS_FS_TREE_OBJECTID &&
(root->root_key.objectid < BTRFS_FIRST_FREE_OBJECTID ||
root->root_key.objectid > BTRFS_LAST_FREE_OBJECTID))
return 0;

path = btrfs_alloc_path();
if (!path)
return -ENOMEM;
Expand Down

0 comments on commit 903a913

Please sign in to comment.