nilfs_bmap_delete(9)
π nilfs_bmap_delete(9) π
ok so like, welcome to the Kernel API Manual bestie β¨ this one's from nilfs_bmap_delete(9) and it's genuinely so straightforward you're gonna slay it.
πΈ NAME πΈ
nilfs_bmap_delete β delete a key-record pair from a bmap π
β¨ SYNOPSIS β¨
int nilfs_bmap_delete (struct nilfs_bmap *bmap , __u64 key );
like, that's the whole signature. no cap. π«Ά
π¦ ARGUMENTS π¦
bmapβ bmap πkeyβ key π
(yeah the manpage is literally that chill about it, we're not gonna over-explain β it's a bmap and it's a key, iykyk)
π DESCRIPTION π
okay so here's the vibe: nilfs_bmap_delete deletes the key-record pair specified by key from bmap. that's it. that's the whole thing. it takes the key, it finds the record, it's gone. iconic behavior honestly π
π₯ RETURN π₯
it returns 0 on success β¨ β or one of these negative error codes on failure (yes they're negative, they're little haters):
-EIOβ I/O error (including metadata corruption) π like the disk is not okay-ENOENTβ a record associated withkeydoes not exist π nothing to delete, bestie-ENOMEMβ insufficient memory available π out of RAM, tragic
π SEE ALSO π
kernel file ./fs/nilfs2/bmap.c β go read the source, it's giving main character energy πβ¨
and all the sibling functions, aka the whole bmap friend group π«Ά:
nilfs_bmap_lookup_at_level(9)nilfs_bmap_insert(9)nilfs_bmap_seek_key(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_test_and_clear_dirty(9)nilfs_bmap_read(9)nilfs_bmap_write(9)
okay that's the whole page, mwah π this came out of ./fs/nilfs2, dated October 2026, and it's the nilfs_bmap_delete(9) page β go forth and delete those key-record pairs, you've got this π§ββοΈπ
π¦ 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