btrfs: Catch locking failures in {set,clear,convert}_extent_bit
authorJeff Mahoney <jeffm@suse.com>
Tue, 4 Oct 2011 03:22:32 +0000 (23:22 -0400)
committerDavid Sterba <dsterba@suse.cz>
Thu, 22 Mar 2012 00:45:30 +0000 (01:45 +0100)
commitc2d904e086b6f707b73bf065e4d18ded4b86ae9e
tree44ab2acff4eaefca2abd3273bd31fbc74f73f96c
parent8c3429300181be44b30f9f017d53dc717da56caa
btrfs: Catch locking failures in {set,clear,convert}_extent_bit

The *_state functions can only return 0 or -EEXIST. This patch addresses
the cases where those functions returning -EEXIST represent a locking
failure. It handles them by panicking with an appropriate error message.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
fs/btrfs/extent_io.c