Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322364
b: refs/heads/master
c: b12a3b1
h: refs/heads/master
v: v3
  • Loading branch information
Chris Mason authored and Chris Mason committed Aug 28, 2012
1 parent 3595d79 commit 03eb45d
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 6fc823b10f333313deb0b5d9069cbfd3a3f99f3a
refs/heads/master: b12a3b1ea209d9dec02731fba58c3dbe7d31cfd8
3 changes: 3 additions & 0 deletions trunk/fs/btrfs/ctree.c
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,9 @@ __tree_mod_log_free_eb(struct btrfs_fs_info *fs_info, struct extent_buffer *eb)
u32 nritems;
int ret;

if (btrfs_header_level(eb) == 0)
return;

nritems = btrfs_header_nritems(eb);
for (i = nritems - 1; i >= 0; i--) {
ret = tree_mod_log_insert_key_locked(fs_info, eb, i,
Expand Down

0 comments on commit 03eb45d

Please sign in to comment.