lkml.org 
[lkml]   [2023]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] kpageflags: respect folio head-page flag placement
On Wed, Oct 25, 2023 at 09:34:15PM -0400, Rik van Riel wrote:
> On Wed, 2023-10-25 at 16:12 -0400, Gregory Price wrote:
> >         u |= kpf_copy_bit(k, KPF_SWAPBACKED,    PG_swapbacked);
> >
>
> Aren't PG_locked, PG_reclaim, and PG_swapbacked also maintained only on
> the folio/head?
>
> Would it make sense to convert those over as well?
>

I see them registered as PF_NO_TAIL in include/linux/page-flags.h

Certainly i think there are other updates that are likely needed, but
I wasn't quite sure how to handle ONLY_HEAD and NO_TAIL and other
conditionals. Should the bits always be 0 or should it refer to HEAD?

Just not sure at the moment.

~Gregory

\
 
 \ /
  Last update: 2023-10-26 21:13    [W:0.084 / U:1.640 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site