nilfs_mdt_forget_block(9)
π NAME π
Okay bestie, welcome to nilfs_mdt_forget_block(9) β this one lives in the Kernel API Manual. The name says it all: nilfs_mdt_forget_block β discard dirty state and try to remove the page. It's giving cleanup-era main character energy β¨
β¨ SYNOPSIS β¨
int nilfs_mdt_forget_block (struct inode *inode , unsigned long block );
π ARGUMENTS π
inodeβ the inode of the meta data file. Yep, that meta data file.blockβ block offset. That's the spot we're talking about.
π¦ DESCRIPTION π¦
So here's the vibe: nilfs_mdt_forget_block clears a dirty flag of the specified buffer, and then it tries to release the page that includes the buffer from a page cache. Lowkey it's doing a little "forget this block's dirty era and see if the page can bounce" situation π
No cap, that's the whole move: clear the dirty flag, then try to release the page including the buffer from the page cache.
π₯ RETURN π₯
On success you get 0, iconic. On failure you get one of these negative error codes, fr fr:
-EBUSYβ Page has an active buffer.-ENOENTβ Page cache has no page addressed by the offset.
π SEE ALSO π
Kernel file ./fs/nilfs2/mdt.c plus these function besties:
nilfs_mdt_get_block(9)nilfs_mdt_find_block(9)nilfs_mdt_delete_block(9)nilfs_mdt_clear(9)nilfs_mdt_destroy(9)nilfs_mdt_setup_shadow_map(9)nilfs_mdt_save_to_shadow_map(9)nilfs_mdt_restore_from_shadow_map(9)nilfs_mdt_clear_shadow_map(9)
Byeee π β source/version: ./fs/nilfs2; date: October 2026; page: nilfs_mdt_forget_block(9). Slay and stay safe out there π«Ά
π¦ 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