linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Mixed page compact code and (higher order) folios for filemap
@ 2023-11-16  3:41 Qu Wenruo
  2023-11-16  5:05 ` Matthew Wilcox
  0 siblings, 1 reply; 7+ messages in thread
From: Qu Wenruo @ 2023-11-16  3:41 UTC (permalink / raw)
  To: Linux Memory Management List, Linux FS Devel,
	linux-btrfs@vger.kernel.org

Hi guys,

I'm wondering if there is any pitfalls when mixing the legacy page based
code with higher order (order >= 1) folios.

E.g. if I allocated a folio with order 2, attached some private data to
the folio, then call filemap_add_folio().

Later some one called find_lock_page() and hit the 2nd page of that folio.

I believe the regular IO is totally fine, but what would happen for the
page->private of that folio?
Would them all share the same value of the folio_attach_private()? Or
some different values?

Thanks,
Qu

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-11-17 13:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-16  3:41 Mixed page compact code and (higher order) folios for filemap Qu Wenruo
2023-11-16  5:05 ` Matthew Wilcox
2023-11-16  5:30   ` Qu Wenruo
2023-11-16 14:23     ` Matthew Wilcox
2023-11-16 20:33       ` Qu Wenruo
2023-11-16 22:40       ` Qu Wenruo
2023-11-17 13:36         ` Matthew Wilcox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).