]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/btrfs/backref.c
Merge tag 'random_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso...
[karo-tx-linux.git] / fs / btrfs / backref.c
index 8299601a35493b28f137cce3074dec455efbb3bf..7699e16784d313459181c746d0b8c30d468e23a7 100644 (file)
@@ -956,8 +956,7 @@ static int __add_delayed_refs(struct btrfs_delayed_ref_head *head, u64 seq,
 /*
  * add all inline backrefs for bytenr to the list
  */
-static int __add_inline_refs(struct btrfs_fs_info *fs_info,
-                            struct btrfs_path *path, u64 bytenr,
+static int __add_inline_refs(struct btrfs_path *path, u64 bytenr,
                             int *info_level, struct list_head *prefs,
                             struct ref_root *ref_tree,
                             u64 *total_refs, u64 inum)
@@ -1284,7 +1283,7 @@ again:
                 */
                delayed_refs = &trans->transaction->delayed_refs;
                spin_lock(&delayed_refs->lock);
-               head = btrfs_find_delayed_ref_head(trans, bytenr);
+               head = btrfs_find_delayed_ref_head(delayed_refs, bytenr);
                if (head) {
                        if (!mutex_trylock(&head->mutex)) {
                                atomic_inc(&head->node.refs);
@@ -1354,7 +1353,7 @@ again:
                if (key.objectid == bytenr &&
                    (key.type == BTRFS_EXTENT_ITEM_KEY ||
                     key.type == BTRFS_METADATA_ITEM_KEY)) {
-                       ret = __add_inline_refs(fs_info, path, bytenr,
+                       ret = __add_inline_refs(path, bytenr,
                                                &info_level, &prefs,
                                                ref_tree, &total_refs,
                                                inum);