From: Zi Yan via Linux-f2fs-devel <linux-f2fs-devel@lists.sourceforge.net>
To: "Jürgen Groß" <jgross@suse.com>,
"David Hildenbrand" <david@kernel.org>,
"Matthew Wilcox (Oracle)" <willy@infradead.org>,
"Andrew Morton" <akpm@linux-foundation.org>,
"Muchun Song" <muchun.song@linux.dev>,
"Lorenzo Stoakes" <ljs@kernel.org>,
"Liam R. Howlett" <liam@infradead.org>,
"Vlastimil Babka" <vbabka@kernel.org>,
"Mike Rapoport" <rppt@kernel.org>,
"Suren Baghdasaryan" <surenb@google.com>,
"Michal Hocko" <mhocko@suse.com>,
"Baolin Wang" <baolin.wang@linux.alibaba.com>,
"Nico Pache" <nico.pache@linux.dev>,
"Ryan Roberts" <ryan.roberts@arm.com>,
"Dev Jain" <dev.jain@arm.com>, "Barry Song" <baohua@kernel.org>,
"Lance Yang" <lance.yang@linux.dev>,
"Usama Arif" <usama.arif@linux.dev>,
"Gregory Price" <gourry@gourry.net>,
"Ying Huang" <ying.huang@linux.alibaba.com>,
"Alistair Popple" <apopple@nvidia.com>,
"Johannes Weiner" <hannes@cmpxchg.org>,
"Qi Zheng" <qi.zheng@linux.dev>,
"Shakeel Butt" <shakeel.butt@linux.dev>,
"Kairui Song" <kasong@tencent.com>
Cc: Mark Rutland <mark.rutland@arm.com>,
Ian Rogers <irogers@google.com>, Jan Kara <jack@suse.cz>,
linux-doc@vger.kernel.org, Alex Markuze <amarkuze@redhat.com>,
Peter Zijlstra <peterz@infradead.org>,
kexec@lists.infradead.org,
Dave Hansen <dave.hansen@linux.intel.com>,
Dave Young <ruirui.yang@linux.dev>,
Adrian Hunter <adrian.hunter@intel.com>,
linux-mm@kvack.org, Hongbo Li <hongbohbli@tencent.com>,
"H. Peter Anvin" <hpa@zytor.com>,
Chunhai Guo <guochunhai@vivo.com>,
Shuah Khan <skhan@linuxfoundation.org>,
ceph-devel@vger.kernel.org, Baoquan He <baoquan.he@linux.dev>,
Matthew Brost <matthew.brost@intel.com>,
Jonathan Corbet <corbet@lwn.net>,
Stefano Stabellini <sstabellini@kernel.org>,
Yue Hu <zbestahu@gmail.com>, Rakie Kim <rakie.kim@sk.com>,
Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>,
Richard Weinberger <richard@nod.at>,
x86@kernel.org, Eric Biggers <ebiggers@kernel.org>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Ingo Molnar <mingo@redhat.com>,
Viacheslav Dubeyko <slava@dubeyko.com>,
Byungchul Park <byungchul@sk.com>, Yu Kuai <yukuai@fygo.io>,
xen-devel@lists.xenproject.org, Gao Xiang <xiang@kernel.org>,
Masami Hiramatsu <mhiramat@kernel.org>,
Wei Xu <weixugc@google.com>, Xiao Ni <xiao@kernel.org>,
Anna Schumaker <anna@kernel.org>,
James Clark <james.clark@linaro.org>,
Arnaldo Carvalho de Melo <acme@kernel.org>,
linux-raid@vger.kernel.org, linux-fscrypt@vger.kernel.org,
Borislav Petkov <bp@alien8.de>,
Steven Rostedt <rostedt@goodmis.org>,
linux-mtd@lists.infradead.org,
Axel Rasmussen <axelrasmussen@google.com>,
Jeffle Xu <jefflexu@linux.alibaba.com>,
Namhyung Kim <namhyung@kernel.org>,
Jaegeuk Kim <jaegeuk@kernel.org>,
Yuanchu Xie <yuanchu@google.com>,
Ilya Dryomov <idryomov@gmail.com>,
Oscar Salvador <osalvador@suse.de>,
Joshua Hahn <joshua.hahnjy@gmail.com>,
Pratyush Yadav <pratyush@kernel.org>,
linux-nfs@vger.kernel.org, "Theodore Y. Ts'o" <tytso@mit.edu>,
Song Liu <song@kernel.org>, Li Nan <magiclinan@didiglobal.com>,
Minchan Kim <minchan@kernel.org>,
Pasha Tatashin <pasha.tatashin@soleen.com>,
linux-kernel@vger.kernel.org,
linux-f2fs-devel@lists.sourceforge.net,
linux-perf-users@vger.kernel.org,
Sergey Senozhatsky <senozhatsky@chromium.org>,
Thomas Gleixner <tglx@kernel.org>, Jiri Olsa <jolsa@kernel.org>,
linux-fsdevel@vger.kernel.org,
Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
linux-trace-kernel@vger.kernel.org, linux-erofs@lists.ozlabs.org,
Trond Myklebust <trondmy@kernel.org>
Subject: Re: [f2fs-dev] [PATCH RFC 00/14] Remove PG_private by using page/folio->private checks instead
Date: Mon, 03 Aug 2026 14:13:13 -0400 [thread overview]
Message-ID: <DKFIGJBRSDB1.O204NIB7HZMR@nvidia.com> (raw)
In-Reply-To: <5ca4d0e4-1747-45a7-a916-a7516bb1692b@suse.com>
On Mon Aug 3, 2026 at 5:07 AM EDT, Jürgen Groß wrote:
> On 01.08.26 04:13, Zi Yan wrote:
>> Hi all,
>>
>> This patchset removes PG_private to make space for upcoming PG_folio
>> (reserved as __PG_folio) for identifying pages from a folio (more details
>> in Note below). Instead of checking PG_private, all code is changed to
>> check page/folio->private != NULL instead.
>
> I'm a little bit worried that page/folio->private is in a union, so today
> it could (in theory) be != NULL while PG_private isn't set.
>
> Is it really not possible to enter a path where PG_private is tested while
> page/folio->private != NULL due to the union being used otherwise (PG_private
> not set)?
Yes, it is possible. See: #5 in the exceptional users: erofs uses
->private for reverse linked list and in-flight counters without setting
PG_private. I get rid of the first one and converted the second one to
use folio_attach/detach/get_private() to follow the general ->private
use pattern..
For non file system folios, anon swapcache puts swap_entry_t in
->private and hugetlb puts its flags in ->private. I added
folio_test_fs_private() to exclude them, but this helper is planned to
be used by core MM, since filesystem code should not encounter these
two.
--
Best Regards,
Yan, Zi
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
prev parent reply other threads:[~2026-08-03 23:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-01 2:13 [f2fs-dev] [PATCH RFC 00/14] Remove PG_private by using page/folio->private checks instead Zi Yan via Linux-f2fs-devel
2026-08-01 2:13 ` [f2fs-dev] [PATCH RFC 06/14] fs/f2fs: stop using PG_private Zi Yan via Linux-f2fs-devel
2026-08-03 11:17 ` Chao Yu via Linux-f2fs-devel
2026-08-03 15:48 ` Usama Arif
[not found] ` <5ca4d0e4-1747-45a7-a916-a7516bb1692b@suse.com>
2026-08-03 18:13 ` Zi Yan via Linux-f2fs-devel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DKFIGJBRSDB1.O204NIB7HZMR@nvidia.com \
--to=linux-f2fs-devel@lists.sourceforge.net \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=akpm@linux-foundation.org \
--cc=alexander.shishkin@linux.intel.com \
--cc=amarkuze@redhat.com \
--cc=anna@kernel.org \
--cc=apopple@nvidia.com \
--cc=axelrasmussen@google.com \
--cc=baohua@kernel.org \
--cc=baolin.wang@linux.alibaba.com \
--cc=baoquan.he@linux.dev \
--cc=bp@alien8.de \
--cc=byungchul@sk.com \
--cc=ceph-devel@vger.kernel.org \
--cc=corbet@lwn.net \
--cc=dave.hansen@linux.intel.com \
--cc=david@kernel.org \
--cc=dev.jain@arm.com \
--cc=ebiggers@kernel.org \
--cc=gourry@gourry.net \
--cc=guochunhai@vivo.com \
--cc=hannes@cmpxchg.org \
--cc=hongbohbli@tencent.com \
--cc=hpa@zytor.com \
--cc=idryomov@gmail.com \
--cc=irogers@google.com \
--cc=jack@suse.cz \
--cc=jaegeuk@kernel.org \
--cc=james.clark@linaro.org \
--cc=jefflexu@linux.alibaba.com \
--cc=jgross@suse.com \
--cc=jolsa@kernel.org \
--cc=joshua.hahnjy@gmail.com \
--cc=kasong@tencent.com \
--cc=kexec@lists.infradead.org \
--cc=lance.yang@linux.dev \
--cc=liam@infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-erofs@lists.ozlabs.org \
--cc=linux-fscrypt@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-mtd@lists.infradead.org \
--cc=linux-nfs@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=linux-raid@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=ljs@kernel.org \
--cc=magiclinan@didiglobal.com \
--cc=mark.rutland@arm.com \
--cc=mathieu.desnoyers@efficios.com \
--cc=matthew.brost@intel.com \
--cc=mhiramat@kernel.org \
--cc=mhocko@suse.com \
--cc=minchan@kernel.org \
--cc=mingo@redhat.com \
--cc=muchun.song@linux.dev \
--cc=namhyung@kernel.org \
--cc=nico.pache@linux.dev \
--cc=oleksandr_tyshchenko@epam.com \
--cc=osalvador@suse.de \
--cc=pasha.tatashin@soleen.com \
--cc=peterz@infradead.org \
--cc=pratyush@kernel.org \
--cc=qi.zheng@linux.dev \
--cc=rakie.kim@sk.com \
--cc=richard@nod.at \
--cc=rostedt@goodmis.org \
--cc=rppt@kernel.org \
--cc=ruirui.yang@linux.dev \
--cc=ryan.roberts@arm.com \
--cc=senozhatsky@chromium.org \
--cc=shakeel.butt@linux.dev \
--cc=skhan@linuxfoundation.org \
--cc=slava@dubeyko.com \
--cc=song@kernel.org \
--cc=sstabellini@kernel.org \
--cc=surenb@google.com \
--cc=tglx@kernel.org \
--cc=trondmy@kernel.org \
--cc=tytso@mit.edu \
--cc=usama.arif@linux.dev \
--cc=vbabka@kernel.org \
--cc=weixugc@google.com \
--cc=willy@infradead.org \
--cc=x86@kernel.org \
--cc=xen-devel@lists.xenproject.org \
--cc=xiang@kernel.org \
--cc=xiao@kernel.org \
--cc=ying.huang@linux.alibaba.com \
--cc=yuanchu@google.com \
--cc=yukuai@fygo.io \
--cc=zbestahu@gmail.com \
--cc=ziy@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox