函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\fs.h Create Date:2022-07-27 06:44:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:inode_lock_nested

函数原型:static inline void inode_lock_nested(struct inode *inode, unsigned subclass)

返回类型:void

参数:

类型参数名称
struct inode *inode
unsignedsubclass
826  down_write_nested( & i_rwsem, subclass)
调用者
名称描述
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