This updates recovery code to use the readahead helper.
Signed-off-by: Liu Bo <[email protected]>
---
fs/btrfs/raid56.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/fs/btrfs/raid56.c b/fs/btrfs/raid56.c
index 24f7cbb..8f47e56 100644
--- a/fs/btrfs/raid56.c
+++ b/fs/btrfs/raid56.c
@@ -1608,7 +1608,9 @@ static int btrfs_r5l_recover_load_meta(struct
btrfs_r5l_recover_ctx *ctx)
{
struct btrfs_r5l_meta_block *mb;
- btrfs_r5l_sync_page_io(log, log->dev, (ctx->pos >> 9), PAGE_SIZE,
ctx->meta_page, REQ_OP_READ);
+ ret = btrfs_r5l_recover_read_page(ctx, ctx->meta_page, ctx->pos);
+ if (ret)
+ return ret;
mb = kmap(ctx->meta_page);
#ifdef BTRFS_DEBUG_R5LOG
--
2.9.4
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html