[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHk-=whqZqTYunL-0tn2-khCU1rcZDrTvY4cdFsx_b_bF=xbGw@mail.gmail.com>
Date: Fri, 15 Sep 2023 17:15:53 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: "Matthew Wilcox (Oracle)" <willy@...radead.org>
Cc: linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org,
linux-arch@...r.kernel.org, Nicholas Piggin <npiggin@...il.com>
Subject: Re: [PATCH 02/17] iomap: Protect read_bytes_pending with the state_lock
On Fri, 15 Sept 2023 at 17:11, Linus Torvalds
<torvalds@...ux-foundation.org> wrote:
>
[...]
> if (unlikely(error))
> folio_set_error(folio);
> else if (uptodate)
> folio_mark_uptodate(folio);
> if (finished)
> folio_unlock(folio);
> }
Note that this then becomes
if (unlikely(error))
folio_set_error(folio);
if (finished)
folio_unlock(folio, uptodate && !error);
}
but that change would happen later, in patch 6/17.
Linus
Powered by blists - more mailing lists