nilfs_copy_folio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

Hey bestie πŸ’– welcome to the Kernel API Manual β€” this is the page for nilfs_copy_folio(9), and it’s lowkey iconic.

✨ NAME ✨

nilfs_copy_folio β€” copy the folio with buffers

🌸 SYNOPSIS 🌸

void nilfs_copy_folio (struct folio *dst , struct folio *src , bool
       copy_dirty );

πŸŽ€ ARGUMENTS πŸŽ€

  • dst β€” destination folio. The one getting the copy, periodt.
  • src β€” source folio. The one being copied from.
  • copy_dirty β€” flag whether to copy dirty states on the folio’s buffer heads. Literally controls whether those dirty states get copied.

πŸ’– DESCRIPTION πŸ’–

Okay so here’s the vibe: this function is for both data folios and btnode folios. The dirty flag should be treated by caller β€” yes, caller, that’s you, bestie. The folio must not be under i/o. Both src and dst folio must be locked.

⚠️ Big warning: the folio must not be under i/o. Like, do not do it. πŸ”’ Also, both src and dst folio must be locked. Both. Locked. No cap.

πŸ‘‘ SEE ALSO πŸ‘‘

The Kernel file is ./fs/nilfs2/page.c, and these related entries are 100% worth a peek:


byeee 🫢 this page comes from the ./fs/nilfs2 source/version, dated October 2026, and it’s literally nilfs_copy_folio(9). Slay. πŸ’…

πŸ“¦ where this page comes from