lock_2_inodes(9)
π lock_2_inodes β Kernel API Manual β¨
πΈ NAME
lock_2_inodes β a wrapper for locking two UBIFS inodes, and that's literally the whole name, bestie π
β¨ SYNOPSIS
okay so the signature is giving:
void lock_2_inodes (struct inode *inode1 , struct inode *inode2 );
π ARGUMENTS
inode1β first inode π«Άinode2β second inode πΈ
π¦ DESCRIPTION
So here's the tea, bestie: we do not implement any tricks to guarantee strict lock ordering, because VFS has already done it for us on the i_mutex. That means this is just a simple wrapper function. No cap, that's the whole vibe π
β¨
π SEE ALSO
go read these too, iykyk π
- Kernel file
./fs/ubifs/dir.c inherit_flags(9)ubifs_new_inode(9)unlock_2_inodes(9)vfs_dent_type(9)ubifs_check_dir_empty(9)lock_4_inodes(9)unlock_4_inodes(9)
β xoxo, your ./fs/ubifs source, October 2026 edition, lock_2_inodes(9) πππ¦
π¦ 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