nilfs_cleanup_super(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

nilfs_cleanup_super β€” write filesystem state for cleanup.

okay bestie, you're reading the nilfs_cleanup_super(9) page from the Kernel API Manual, and we're about to make cleanup state flags make sense. no cap πŸ’…

✨ SYNOPSIS ✨

int nilfs_cleanup_super (struct super_block *sb );

πŸŽ€ ARGUMENTS πŸŽ€

  • sb β€” the super block instance that's getting unmounted, or getting degraded to read-only. that's the whole vibe check for this argument 🫢

πŸ’… DESCRIPTION πŸ’…

okay so this function restores the state flags in the on-disk super block. it's literally putting those state flags back where they belong.

it will set the "clean" flag β€” that's NILFS_VALID_FS, iykyk β€” unless the filesystem was not clean previously. so if it was already not clean, no fake-clean behavior here. periodt.

πŸ”₯ RETURN πŸ”₯

  • 0 on success.
  • -EIO if there's an I/O error or the superblock is corrupted.

πŸ¦‹ SEE ALSO πŸ¦‹


πŸ’Œ cute little sign-off: this page is sourced from ./fs/nilfs2, dated October 2026, and it's the nilfs_cleanup_super(9) manual page. byeeee, go touch some filesystem state 🫢✨

πŸ“¦ where this page comes from