* [PATCH] iomap: Fix iomap_readahead_iter error handling
@ 2021-11-11 14:08 Andreas Gruenbacher
2021-11-12 5:44 ` Christoph Hellwig
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Gruenbacher @ 2021-11-11 14:08 UTC (permalink / raw)
To: Christoph Hellwig, Darrick J . Wong
Cc: linux-xfs, linux-fsdevel, cluster-devel, Andreas Gruenbacher
In iomap_readahead_iter, deal with potential iomap_readpage_iter errors.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
---
fs/iomap/buffered-io.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c
index 1753c26c8e76..9f1e329e8b2c 100644
--- a/fs/iomap/buffered-io.c
+++ b/fs/iomap/buffered-io.c
@@ -370,6 +370,8 @@ static loff_t iomap_readahead_iter(const struct iomap_iter *iter,
ctx->cur_page_in_bio = false;
}
ret = iomap_readpage_iter(iter, ctx, done);
+ if (ret < 0)
+ return ret;
}
return done;
--
2.31.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] iomap: Fix iomap_readahead_iter error handling
2021-11-11 14:08 [PATCH] iomap: Fix iomap_readahead_iter error handling Andreas Gruenbacher
@ 2021-11-12 5:44 ` Christoph Hellwig
0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2021-11-12 5:44 UTC (permalink / raw)
To: Andreas Gruenbacher
Cc: Christoph Hellwig, Darrick J . Wong, linux-xfs, linux-fsdevel,
cluster-devel
On Thu, Nov 11, 2021 at 03:08:02PM +0100, Andreas Gruenbacher wrote:
> In iomap_readahead_iter, deal with potential iomap_readpage_iter errors.
>
> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
> ---
> fs/iomap/buffered-io.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c
> index 1753c26c8e76..9f1e329e8b2c 100644
> --- a/fs/iomap/buffered-io.c
> +++ b/fs/iomap/buffered-io.c
> @@ -370,6 +370,8 @@ static loff_t iomap_readahead_iter(const struct iomap_iter *iter,
> ctx->cur_page_in_bio = false;
> }
> ret = iomap_readpage_iter(iter, ctx, done);
> + if (ret < 0)
> + return ret;
This already is part of your previous patch.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-11-12 5:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-11 14:08 [PATCH] iomap: Fix iomap_readahead_iter error handling Andreas Gruenbacher
2021-11-12 5:44 ` Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).