nilfs_bmap_..._clear_dirty(9)
π 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 thebmap. 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 β
1ifbmapis dirty π0if 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:
nilfs_bmap_lookup_at_level(9)nilfs_bmap_insert(9)nilfs_bmap_seek_key(9)nilfs_bmap_delete(9)nilfs_bmap_truncate(9)nilfs_bmap_clear(9)nilfs_bmap_propagate(9)nilfs_bmap_lookup_dirty_buffers(9)nilfs_bmap_assign(9)nilfs_bmap_mark(9)nilfs_bmap_read(9)nilfs_bmap_write(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms