nilfs_bmap_..._clear_dirty(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nilfs_bmap_..._clear_dirty(9) β€” Kernel API Manual, bestie edition ✨

okay so real talk, this is page nilfs_bmap_..._clear_dirty(9) from the Kernel API Manual, and it's short but it ate. Let's get into it πŸŽ€


✨ NAME ✨

nilfs_bmap_test_and_clear_dirty β€” the one that tests and clears a bmap dirty state 🫢


🌸 SYNOPSIS 🌸

int nilfs_bmap_test_and_clear_dirty (struct nilfs_bmap *bmap );

like, that's the whole signature, no cap. one argument, one int coming back at you πŸ’–


πŸ¦‹ ARGUMENTS πŸ¦‹

  • bmap β€” okay so this is the bmap. yeah. that's the description. it's giving minimalist, it's giving "the parameter is literally named after itself" 😭 we respect it tho

πŸ’œ DESCRIPTION πŸ’œ

so nilfs_test_and_clear is the atomic operation that tests and clears the dirty state of bmap. both. at once. iconic behavior, honestly πŸ‘‘

the way that it's atomic means the test-and-clear happens as one unit β€” no sneaky in-between state, no drama, periodt ✨


⭐ RETURN ⭐

  • 1 if bmap is dirty πŸ’€
  • 0 if it's clear ✨

that's it, that's the vibe check 🌈


🧚 SEE ALSO 🧚

kernel file ./fs/nilfs2/bmap.c β€” go read the source, iykyk πŸ’…

and the whole friend group:


fr fr bestie, if you're poking at nilfs_bmap internals, read the friends above before you YOLO anything 🫢

and that's the page!! this one lives under ./fs/nilfs2, dated October 2026, from the Kernel API Manual β€” mwah, go forth and clear those dirty states, you absolute main character πŸŒŸπŸ’–πŸŽ€

πŸ“¦ where this page comes from