diff options
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index ebd7d6c37df8..95ea58cb3065 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -2441,6 +2441,8 @@ next_node: | |||
2441 | ref->generation = leaf_gen; | 2441 | ref->generation = leaf_gen; |
2442 | ref->nritems = 0; | 2442 | ref->nritems = 0; |
2443 | 2443 | ||
2444 | btrfs_sort_leaf_ref(ref); | ||
2445 | |||
2444 | ret = btrfs_add_leaf_ref(root, ref, 0); | 2446 | ret = btrfs_add_leaf_ref(root, ref, 0); |
2445 | WARN_ON(ret); | 2447 | WARN_ON(ret); |
2446 | btrfs_free_leaf_ref(root, ref); | 2448 | btrfs_free_leaf_ref(root, ref); |