ubifs_jnl_write_inode(9)
β¨ ubifs_jnl_write_inode(9) β¨
okay so this is a page from the Kernel API Manual, bestie β it's ubifs_jnl_write_inode(9) and it's literally all about flushing an inode to the journal π no cap, that's the whole vibe.
π NAME π
ubifs_jnl_write_inode β flush inode to the journal. that's it. that's the function. slay π
πΈ SYNOPSIS πΈ
int ubifs_jnl_write_inode (struct ubifs_info *c , const struct inode
*inode );
like, it takes two things and gives you back an int. iconic behavior fr fr β¨
π¦ ARGUMENTS π¦
cβ the UBIFS file-system description object ποΈ your whole filesystem's little identity card, essentially.inodeβ the inode to flush π½β¨ (jk jk, it's the inode you're writing out, but the wordplay was right there)
π DESCRIPTION π
so what does it actually do? this function writes inode to the journal ππ« that's the main character move right there.
and listen β if the inode is synchronous, it also synchronizes the write-buffer. like it doesn't just drop the write and dip, it waits and makes sure the buffer is synced too π«Ά highkey thorough of it.
what does it return, you ask? zero on success π and a negative error code on failure π so like, check your return values, bestie, always.
π₯ SEE ALSO π₯
okay this list is LONG but we do not skip, we do not summarise, we list every single one because that's the assignment π
and honestly? the whole ./fs/ubifs/journal.c squad showed up:
zero_ino_node_unused(9), zero_dent_node_unused(9), zero_trun_node_unused(9), reserve_space(9), write_head(9), __queue_and_wait(9), wait_for_reservation(9), wake_up_reservation(9), add_or_start_queue(9), make_reservation(9), release_head(9), finish_reservation(9), get_dent_type(9), pack_inode(9), mark_inode_clean(9), ubifs_jnl_update(9), ubifs_jnl_write_data(9), ubifs_jnl_delete_inode(9), ubifs_jnl_xrename(9), ubifs_jnl_rename(9), truncate_data_node(9), ubifs_jnl_truncate(9), ubifs_jnl_delete_xattr(9), ubifs_jnl_change_xattr(9)
like. the whole friend group π« go read them too, iykyk π
and that's the page!! brought to you by ./fs/ubifs, dated October 2026, from the Kernel API Manual β mwah, go touch some inodes π
π¦ 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