]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1bb6f25f00aa399f9c6a4a3e784d5b29ee245de1
tree44ab2acff4eaefca2abd3273bd31fbc74f73f96c
parent6c88e7965472cbf0bb7673491a48c440ae26507c
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