lkml.org 
[lkml]   [2023]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 02/17] iomap: Protect read_bytes_pending with the state_lock
On Fri, 15 Sept 2023 at 17:11, Linus Torvalds
<torvalds@linux-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

\
 
 \ /
  Last update: 2023-09-16 02:26    [W:0.237 / U:0.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site