Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\fs.h Create Date:2022-07-28 05:42:55
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:inode_lock_nested

Proto:static inline void inode_lock_nested(struct inode *inode, unsigned subclass)

Type:void

Parameter:

TypeParameterName
struct inode *inode
unsignedsubclass
826  down_write_nested( & i_rwsem, subclass)
Caller
NameDescribe
SYSCALL_DEFINE1
ns_mkdir_op
ns_rmdir_op
kern_path_lockeddoes lookup, returns the object with parent locked
lock_renamep1 and p2 should be directories on the same fs.
filename_create
do_rmdir
do_unlinkatMake sure that the actual truncation of the file will occur outside its* directory's i_mutex. Truncate can take a long time if there is a lot of* writeout happening, and we don't want to prevent access to the directory* while waiting on the I/O.
lock_two_nondirectorieslock_two_nondirectories - take two i_mutexes on non-directory objects* Lock any non-NULL argument that is not a directory.* Zero, one or two objects may be locked by this function.*@inode1: first inode to lock*@inode2: second inode to lock