From 81b315950819ad4602d736b7696d6ac799f85e9c Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Fri, 13 Apr 2018 11:22:57 -0700 Subject: [PATCH] scoutfs: return errors from read_items The introduction of the helper to handle stale segment retrying was masking errors. It's meant to pass through the caller's return status when it doesn't return -EAGAIN to trigger stale read retries. Signed-off-by: Zach Brown --- kmod/src/manifest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmod/src/manifest.c b/kmod/src/manifest.c index fcf404a2..bc5d5d42 100644 --- a/kmod/src/manifest.c +++ b/kmod/src/manifest.c @@ -490,7 +490,7 @@ static int handle_stale_btree(struct super_block *sb, return -EIO; } - return 0; + return ret; } static int cmp_ment_ref_segno(void *priv, struct list_head *A,