Btrfs: Add error handle for btrfs_search_slot() in btrfs_read_chunk_tree()
authorZhao Lei <zhaolei@cn.fujitsu.com>
Thu, 25 Mar 2010 12:34:49 +0000 (12:34 +0000)
committerChris Mason <chris.mason@oracle.com>
Wed, 31 Mar 2010 01:19:09 +0000 (21:19 -0400)
commitab59381ea43f81c977cbd09add26950aaf6cb9fe
tree5c009854f6c04996492b3bcadc538ed9264948b9
parent471fa17dff556ad38caf26de097c0630530d8cbe
Btrfs: Add error handle for btrfs_search_slot() in btrfs_read_chunk_tree()

We need to check return value of btrfs_search_slot() in
btrfs_read_chunk_tree() and do corresponding error handing.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/volumes.c