Btrfs: return error code to caller when btrfs_previous_item fails
commitb0b802d7e34b0b4a78f911c3a8aad88aa91fd7ab
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>
Thu, 19 May 2011 07:03:42 +0000 (19 07:03 +0000)
committerChris Mason <chris.mason@oracle.com>
Mon, 23 May 2011 17:24:39 +0000 (23 13:24 -0400)
treea921d73b19363e2f29c20265716f8f281fc3f87c
parent27160b6b5a1744b6eaa8416e2b901ec937b1eee0
Btrfs: return error code to caller when btrfs_previous_item fails

The error code is returned instead of calling BUG_ON when
btrfs_previous_item returns the error.

Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/volumes.c