btrfs: pass NULL as trans to btrfs_search_slot if we only want to search
[sfrench/cifs-2.6.git] / fs / btrfs / backref.c
index 78b202d198b8e1741690a2a10fec1955cf221440..728c728d03f3c60ffc72bf40ddb867110db21bb9 100644 (file)
@@ -1211,7 +1211,7 @@ static int find_parent_nodes(struct btrfs_trans_handle *trans,
 again:
        head = NULL;
 
-       ret = btrfs_search_slot(trans, fs_info->extent_root, &key, path, 0, 0);
+       ret = btrfs_search_slot(NULL, fs_info->extent_root, &key, path, 0, 0);
        if (ret < 0)
                goto out;
        BUG_ON(ret == 0);