* [PATCH 27/30] iomap: Remove calls to set and clear folio error flag
[not found] <20240420025029.2166544-1-willy@infradead.org>
@ 2024-04-20 2:50 ` Matthew Wilcox (Oracle)
2024-04-22 6:16 ` Christoph Hellwig
2024-04-25 16:55 ` Darrick J. Wong
0 siblings, 2 replies; 10+ messages in thread
From: Matthew Wilcox (Oracle) @ 2024-04-20 2:50 UTC (permalink / raw)
To: linux-fsdevel
Cc: Matthew Wilcox (Oracle), Christian Brauner, Darrick J . Wong,
linux-xfs
The folio error flag is not checked anywhere, so we can remove the calls
to set and clear it.
Cc: Christian Brauner <brauner@kernel.org>
Cc: Darrick J. Wong <djwong@kernel.org>
Cc: linux-xfs@vger.kernel.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
---
fs/iomap/buffered-io.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c
index 4e8e41c8b3c0..41352601f939 100644
--- a/fs/iomap/buffered-io.c
+++ b/fs/iomap/buffered-io.c
@@ -306,8 +306,6 @@ static void iomap_finish_folio_read(struct folio *folio, size_t off,
spin_unlock_irqrestore(&ifs->state_lock, flags);
}
- if (error)
- folio_set_error(folio);
if (finished)
folio_end_read(folio, uptodate);
}
@@ -460,9 +458,6 @@ int iomap_read_folio(struct folio *folio, const struct iomap_ops *ops)
while ((ret = iomap_iter(&iter, ops)) > 0)
iter.processed = iomap_readpage_iter(&iter, &ctx, 0);
- if (ret < 0)
- folio_set_error(folio);
-
if (ctx.bio) {
submit_bio(ctx.bio);
WARN_ON_ONCE(!ctx.cur_folio_in_bio);
@@ -697,7 +692,6 @@ static int __iomap_write_begin(const struct iomap_iter *iter, loff_t pos,
if (folio_test_uptodate(folio))
return 0;
- folio_clear_error(folio);
do {
iomap_adjust_read_range(iter->inode, folio, &block_start,
@@ -1528,8 +1522,6 @@ iomap_finish_ioend(struct iomap_ioend *ioend, int error)
/* walk all folios in bio, ending page IO on them */
bio_for_each_folio_all(fi, bio) {
- if (error)
- folio_set_error(fi.folio);
iomap_finish_folio_write(inode, fi.folio, fi.length);
folio_count++;
}
--
2.43.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 27/30] iomap: Remove calls to set and clear folio error flag
2024-04-20 2:50 ` [PATCH 27/30] iomap: Remove calls to set and clear folio error flag Matthew Wilcox (Oracle)
@ 2024-04-22 6:16 ` Christoph Hellwig
2024-04-22 15:05 ` Matthew Wilcox
2024-04-25 16:55 ` Darrick J. Wong
1 sibling, 1 reply; 10+ messages in thread
From: Christoph Hellwig @ 2024-04-22 6:16 UTC (permalink / raw)
To: Matthew Wilcox (Oracle)
Cc: linux-fsdevel, Christian Brauner, Darrick J . Wong, linux-xfs
On Sat, Apr 20, 2024 at 03:50:22AM +0100, Matthew Wilcox (Oracle) wrote:
> The folio error flag is not checked anywhere, so we can remove the calls
> to set and clear it.
This patch on it's own looks good, but seeing this is a 27/30 I have
no chance to actually fully review it.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 27/30] iomap: Remove calls to set and clear folio error flag
2024-04-22 6:16 ` Christoph Hellwig
@ 2024-04-22 15:05 ` Matthew Wilcox
2024-04-22 15:26 ` Christoph Hellwig
0 siblings, 1 reply; 10+ messages in thread
From: Matthew Wilcox @ 2024-04-22 15:05 UTC (permalink / raw)
To: Christoph Hellwig
Cc: linux-fsdevel, Christian Brauner, Darrick J . Wong, linux-xfs
On Sun, Apr 21, 2024 at 11:16:01PM -0700, Christoph Hellwig wrote:
> On Sat, Apr 20, 2024 at 03:50:22AM +0100, Matthew Wilcox (Oracle) wrote:
> > The folio error flag is not checked anywhere, so we can remove the calls
> > to set and clear it.
>
> This patch on it's own looks good, but seeing this is a 27/30 I have
> no chance to actually fully review it.
You were bcc'd on 0/30 which fully explained this.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 27/30] iomap: Remove calls to set and clear folio error flag
2024-04-22 15:05 ` Matthew Wilcox
@ 2024-04-22 15:26 ` Christoph Hellwig
2024-04-22 17:51 ` Matthew Wilcox
0 siblings, 1 reply; 10+ messages in thread
From: Christoph Hellwig @ 2024-04-22 15:26 UTC (permalink / raw)
To: Matthew Wilcox
Cc: Christoph Hellwig, linux-fsdevel, Christian Brauner,
Darrick J . Wong, linux-xfs
On Mon, Apr 22, 2024 at 04:05:59PM +0100, Matthew Wilcox wrote:
> On Sun, Apr 21, 2024 at 11:16:01PM -0700, Christoph Hellwig wrote:
> > On Sat, Apr 20, 2024 at 03:50:22AM +0100, Matthew Wilcox (Oracle) wrote:
> > > The folio error flag is not checked anywhere, so we can remove the calls
> > > to set and clear it.
> >
> > This patch on it's own looks good, but seeing this is a 27/30 I have
> > no chance to actually fully review it.
>
> You were bcc'd on 0/30 which fully explained this.
Not on the XFS list through which I'm reading this at least. If it
was to me personally those all go to >/dev/null anyway for mails
Cced to mailing lists.
Please always send the damn series to everyone, fishing individual
mails out of it is just a giant pain in the butt.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 27/30] iomap: Remove calls to set and clear folio error flag
2024-04-22 15:26 ` Christoph Hellwig
@ 2024-04-22 17:51 ` Matthew Wilcox
2024-04-25 12:23 ` Christoph Hellwig
0 siblings, 1 reply; 10+ messages in thread
From: Matthew Wilcox @ 2024-04-22 17:51 UTC (permalink / raw)
To: Christoph Hellwig
Cc: linux-fsdevel, Christian Brauner, Darrick J . Wong, linux-xfs
On Mon, Apr 22, 2024 at 08:26:34AM -0700, Christoph Hellwig wrote:
> On Mon, Apr 22, 2024 at 04:05:59PM +0100, Matthew Wilcox wrote:
> > On Sun, Apr 21, 2024 at 11:16:01PM -0700, Christoph Hellwig wrote:
> > > On Sat, Apr 20, 2024 at 03:50:22AM +0100, Matthew Wilcox (Oracle) wrote:
> > > > The folio error flag is not checked anywhere, so we can remove the calls
> > > > to set and clear it.
> > >
> > > This patch on it's own looks good, but seeing this is a 27/30 I have
> > > no chance to actually fully review it.
> >
> > You were bcc'd on 0/30 which fully explained this.
>
> Not on the XFS list through which I'm reading this at least. If it
> was to me personally those all go to >/dev/null anyway for mails
> Cced to mailing lists.
>
> Please always send the damn series to everyone, fishing individual
> mails out of it is just a giant pain in the butt.
If I do that then half the mailing lists bounce them for having too
many recipients. b4 can fetch the entire series for you if you've
decided to break your email workflow. And yes, 0/30 was bcc'd to
linux-xfs as well.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 27/30] iomap: Remove calls to set and clear folio error flag
2024-04-22 17:51 ` Matthew Wilcox
@ 2024-04-25 12:23 ` Christoph Hellwig
2024-04-25 12:44 ` Matthew Wilcox
0 siblings, 1 reply; 10+ messages in thread
From: Christoph Hellwig @ 2024-04-25 12:23 UTC (permalink / raw)
To: Matthew Wilcox
Cc: Christoph Hellwig, linux-fsdevel, Christian Brauner,
Darrick J . Wong, linux-xfs
On Mon, Apr 22, 2024 at 06:51:37PM +0100, Matthew Wilcox wrote:
> If I do that then half the mailing lists bounce them for having too
> many recipients. b4 can fetch the entire series for you if you've
> decided to break your email workflow. And yes, 0/30 was bcc'd to
> linux-xfs as well.
I can't find it on linux-xfs still. And please just don't make up
your own workflow or require odd tools.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 27/30] iomap: Remove calls to set and clear folio error flag
2024-04-25 12:23 ` Christoph Hellwig
@ 2024-04-25 12:44 ` Matthew Wilcox
2024-04-25 12:51 ` Christoph Hellwig
0 siblings, 1 reply; 10+ messages in thread
From: Matthew Wilcox @ 2024-04-25 12:44 UTC (permalink / raw)
To: Christoph Hellwig
Cc: linux-fsdevel, Christian Brauner, Darrick J . Wong, linux-xfs
On Thu, Apr 25, 2024 at 05:23:44AM -0700, Christoph Hellwig wrote:
> On Mon, Apr 22, 2024 at 06:51:37PM +0100, Matthew Wilcox wrote:
> > If I do that then half the mailing lists bounce them for having too
> > many recipients. b4 can fetch the entire series for you if you've
> > decided to break your email workflow. And yes, 0/30 was bcc'd to
> > linux-xfs as well.
>
> I can't find it on linux-xfs still. And please just don't make up
> your own workflow or require odd tools.
You even quoted the bit where I explained that the workflow you insist I
follow doesn't work.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 27/30] iomap: Remove calls to set and clear folio error flag
2024-04-25 12:44 ` Matthew Wilcox
@ 2024-04-25 12:51 ` Christoph Hellwig
2024-04-25 16:47 ` Darrick J. Wong
0 siblings, 1 reply; 10+ messages in thread
From: Christoph Hellwig @ 2024-04-25 12:51 UTC (permalink / raw)
To: Matthew Wilcox
Cc: Christoph Hellwig, linux-fsdevel, Christian Brauner,
Darrick J . Wong, linux-xfs
On Thu, Apr 25, 2024 at 01:44:49PM +0100, Matthew Wilcox wrote:
> On Thu, Apr 25, 2024 at 05:23:44AM -0700, Christoph Hellwig wrote:
> > On Mon, Apr 22, 2024 at 06:51:37PM +0100, Matthew Wilcox wrote:
> > > If I do that then half the mailing lists bounce them for having too
> > > many recipients. b4 can fetch the entire series for you if you've
> > > decided to break your email workflow. And yes, 0/30 was bcc'd to
> > > linux-xfs as well.
> >
> > I can't find it on linux-xfs still. And please just don't make up
> > your own workflow or require odd tools.
>
> You even quoted the bit where I explained that the workflow you insist I
> follow doesn't work.
I've regularly sent series to more list than you'd need for 30
patches even if they were entirely unrelated. But if they are
entirely unrelated it shouldn't be a series to start with..
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 27/30] iomap: Remove calls to set and clear folio error flag
2024-04-25 12:51 ` Christoph Hellwig
@ 2024-04-25 16:47 ` Darrick J. Wong
0 siblings, 0 replies; 10+ messages in thread
From: Darrick J. Wong @ 2024-04-25 16:47 UTC (permalink / raw)
To: Christoph Hellwig
Cc: Matthew Wilcox, linux-fsdevel, Christian Brauner, linux-xfs
On Thu, Apr 25, 2024 at 05:51:45AM -0700, Christoph Hellwig wrote:
> On Thu, Apr 25, 2024 at 01:44:49PM +0100, Matthew Wilcox wrote:
> > On Thu, Apr 25, 2024 at 05:23:44AM -0700, Christoph Hellwig wrote:
> > > On Mon, Apr 22, 2024 at 06:51:37PM +0100, Matthew Wilcox wrote:
> > > > If I do that then half the mailing lists bounce them for having too
> > > > many recipients. b4 can fetch the entire series for you if you've
> > > > decided to break your email workflow. And yes, 0/30 was bcc'd to
> > > > linux-xfs as well.
> > >
> > > I can't find it on linux-xfs still. And please just don't make up
> > > your own workflow or require odd tools.
> >
> > You even quoted the bit where I explained that the workflow you insist I
> > follow doesn't work.
>
> I've regularly sent series to more list than you'd need for 30
> patches even if they were entirely unrelated. But if they are
> entirely unrelated it shouldn't be a series to start with..
One thing I didn't realize until willy pointed this out separately is
that some of the list processing softwares will silently ignore an email
if it has too many entries (~10) in the to/cc list, because spam
heuristics. I think vger/linux.dev is fairly forgiving about that, but
indie listservs might not be, and that adds friction to treewide
changes.
At least the whole series made it to fsdevel, but fsdevel is such a
firehose now that I can't keep up with it. It's too bad that linux-xfs
can't simply mirror patchsets sent to mm/fsdevel with "xfs:" in the
title, and then I wouldn't have to look at the firehose.
All I'm really trying to say is, patchbombs are crap for collaboration.
--D
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 27/30] iomap: Remove calls to set and clear folio error flag
2024-04-20 2:50 ` [PATCH 27/30] iomap: Remove calls to set and clear folio error flag Matthew Wilcox (Oracle)
2024-04-22 6:16 ` Christoph Hellwig
@ 2024-04-25 16:55 ` Darrick J. Wong
1 sibling, 0 replies; 10+ messages in thread
From: Darrick J. Wong @ 2024-04-25 16:55 UTC (permalink / raw)
To: Matthew Wilcox (Oracle); +Cc: linux-fsdevel, Christian Brauner, linux-xfs
On Sat, Apr 20, 2024 at 03:50:22AM +0100, Matthew Wilcox (Oracle) wrote:
> The folio error flag is not checked anywhere, so we can remove the calls
> to set and clear it.
>
> Cc: Christian Brauner <brauner@kernel.org>
> Cc: Darrick J. Wong <djwong@kernel.org>
> Cc: linux-xfs@vger.kernel.org
> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Looks fine to me,
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
--D
> ---
> fs/iomap/buffered-io.c | 8 --------
> 1 file changed, 8 deletions(-)
>
> diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c
> index 4e8e41c8b3c0..41352601f939 100644
> --- a/fs/iomap/buffered-io.c
> +++ b/fs/iomap/buffered-io.c
> @@ -306,8 +306,6 @@ static void iomap_finish_folio_read(struct folio *folio, size_t off,
> spin_unlock_irqrestore(&ifs->state_lock, flags);
> }
>
> - if (error)
> - folio_set_error(folio);
> if (finished)
> folio_end_read(folio, uptodate);
> }
> @@ -460,9 +458,6 @@ int iomap_read_folio(struct folio *folio, const struct iomap_ops *ops)
> while ((ret = iomap_iter(&iter, ops)) > 0)
> iter.processed = iomap_readpage_iter(&iter, &ctx, 0);
>
> - if (ret < 0)
> - folio_set_error(folio);
> -
> if (ctx.bio) {
> submit_bio(ctx.bio);
> WARN_ON_ONCE(!ctx.cur_folio_in_bio);
> @@ -697,7 +692,6 @@ static int __iomap_write_begin(const struct iomap_iter *iter, loff_t pos,
>
> if (folio_test_uptodate(folio))
> return 0;
> - folio_clear_error(folio);
>
> do {
> iomap_adjust_read_range(iter->inode, folio, &block_start,
> @@ -1528,8 +1522,6 @@ iomap_finish_ioend(struct iomap_ioend *ioend, int error)
>
> /* walk all folios in bio, ending page IO on them */
> bio_for_each_folio_all(fi, bio) {
> - if (error)
> - folio_set_error(fi.folio);
> iomap_finish_folio_write(inode, fi.folio, fi.length);
> folio_count++;
> }
> --
> 2.43.0
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2024-04-25 16:55 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20240420025029.2166544-1-willy@infradead.org>
2024-04-20 2:50 ` [PATCH 27/30] iomap: Remove calls to set and clear folio error flag Matthew Wilcox (Oracle)
2024-04-22 6:16 ` Christoph Hellwig
2024-04-22 15:05 ` Matthew Wilcox
2024-04-22 15:26 ` Christoph Hellwig
2024-04-22 17:51 ` Matthew Wilcox
2024-04-25 12:23 ` Christoph Hellwig
2024-04-25 12:44 ` Matthew Wilcox
2024-04-25 12:51 ` Christoph Hellwig
2024-04-25 16:47 ` Darrick J. Wong
2024-04-25 16:55 ` Darrick J. Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox