Btrfs: Defrag: only walk into nodes with the defrag bit set
Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
304fced668
commit
cf786e79e3
2 changed files with 4 additions and 5 deletions
|
@ -280,7 +280,6 @@ int btrfs_realloc_node(struct btrfs_trans_handle *trans,
|
|||
*last_ret = search_start;
|
||||
if (parent_level == 1)
|
||||
btrfs_clear_buffer_defrag(tmp);
|
||||
btrfs_set_buffer_defrag_done(tmp);
|
||||
free_extent_buffer(tmp);
|
||||
}
|
||||
return err;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue