btrfs: replace btrfs_set_lock_blocking_rw with appropriate helpers
[sfrench/cifs-2.6.git] / fs / btrfs / backref.c
index 78556447e1d5a203a2f087c3342d51cd61cc1134..136454dbb4afdde1330f07eae441392be18c0973 100644 (file)
@@ -1289,7 +1289,7 @@ again:
                                        goto out;
                                }
                                btrfs_tree_read_lock(eb);
-                               btrfs_set_lock_blocking_rw(eb, BTRFS_READ_LOCK);
+                               btrfs_set_lock_blocking_read(eb);
                                ret = find_extent_in_eb(eb, bytenr,
                                                        *extent_item_pos, &eie, ignore_offset);
                                btrfs_tree_read_unlock_blocking(eb);
@@ -1650,7 +1650,7 @@ char *btrfs_ref_to_path(struct btrfs_root *fs_root, struct btrfs_path *path,
                /* make sure we can use eb after releasing the path */
                if (eb != eb_in) {
                        if (!path->skip_locking)
-                               btrfs_set_lock_blocking_rw(eb, BTRFS_READ_LOCK);
+                               btrfs_set_lock_blocking_read(eb);
                        path->nodes[0] = NULL;
                        path->locks[0] = 0;
                }