From 64c043de466d5746e7ca306dab9d418cd871cefc Mon Sep 17 00:00:00 2001 From: Liu Bo Date: Mon, 25 May 2015 17:30:15 +0800 Subject: [PATCH] Btrfs: fix up read_tree_block to return proper error The return value of read_tree_block() can confuse callers as it always returns NULL for either -ENOMEM or -EIO, so it's likely that callers parse it to a wrong error, for instance, in btrfs_read_tree_root(). This fixes the above issue. Signed-off-by: Liu Bo Reviewed-by: David Sterba Signed-off-by: Chris Mason --- Reading git-format-patch failed