Skip to content
Commit c6664b42 authored by Ilya Dryomov's avatar Ilya Dryomov Committed by Chris Mason
Browse files

Btrfs: remove lock assert from get_restripe_target()

This fixes a regression introduced by fc67c450

.  spin_is_locked() always
returns 0 on UP kernels, which caused assert in get_restripe_target() to
be fired on every call from btrfs_reduce_alloc_profile() on UP systems.
Remove it completely for now, it's not clear if it's going to be needed
in future.

Reported-by: default avatarBobby Powers <bobbypowers@gmail.com>
Reported-by: default avatarMitch Harder <mitch.harder@sabayonlinux.org>
Tested-by: default avatarMitch Harder <mitch.harder@sabayonlinux.org>
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent b89203f7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment