ubifs_jnl_write_data(9)
β¨ ubifs_jnl_write_data β¨
okay bestie, welcome to the ubifs_jnl_write_data(9) page πΈ this one lives in the Kernel API Manual and it's literally the whole vibe of "write a data node to the journal" β no cap. come sit with me, it's short and sweet and we're gonna get through it together π
π SYNOPSIS π
int ubifs_jnl_write_data (struct ubifs_info *c , const struct inode
*inode , const union ubifs_key *key , struct folio *folio , size_t
offset , int len );
that's the whole signature, periodt. don't tweak a character of it π«Ά
π ARGUMENTS π
cβ the UBIFS file-system description object. it's giving "the whole filesystem in one struct" energy β¨inodeβ the inode that this data node belongs to (yes, that inode π )keyβ the node key πfolioβ the buffer we're writing from π¦offsetβ where in the buffer we're writing atlenβ the data length. and listen, important: it must not exceedUBIFS_BLOCK_SIZEβ οΈ like, that's a hard vibe check, respect it π
π DESCRIPTION π
so what does it actually do? This function writes a data node to the journal π that's it, that's the whole job, and honestly she ate.
It returns 0 if the data node was successfully written π and a negative error code if something went wrong π (iykyk β negative means bad news, bestie).
π¦ SEE ALSO π¦
Kernel file ./fs/ubifs/journal.c β and like, the whole extended friend group of functions:
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_inode(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)
all of them, none skipped, we don't do gatekeeping here π
and that's the page, diva π if you ever forgetlenmust not exceedUBIFS_BLOCK_SIZE, I will personally appear in your kernel logs π
this lil masterpiece comes from the source/version ./fs/ubifs, dated October 2026 π slay, see you in the next manpage bestie πΈβ¨
π¦ 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