btrfs: locking: remove all the blocking helpers
[sfrench/cifs-2.6.git] / fs / btrfs / file.c
index 5abdc7332dfcf4925da5bb3e074cadc30e8c06cb..97b5b183272f1b87f7cca9a40cbe39bd84254ba3 100644 (file)
@@ -991,8 +991,7 @@ delete_extent_item:
         * write lock.
         */
        if (!ret && replace_extent && leafs_visited == 1 &&
-           (path->locks[0] == BTRFS_WRITE_LOCK_BLOCKING ||
-            path->locks[0] == BTRFS_WRITE_LOCK) &&
+           path->locks[0] == BTRFS_WRITE_LOCK &&
            btrfs_leaf_free_space(leaf) >=
            sizeof(struct btrfs_item) + extent_item_size) {