函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\super.c Create Date:2022-07-29 10:32:25
Last Modify:2022-05-24 06:42:17 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:This is an internal function, please use sb_start_{write,pagefault,intwrite}* instead.

函数原型:int __sb_start_write(struct super_block *sb, int level, bool wait)

返回类型:int

参数:

类型参数名称
struct super_block *sb
intlevel
boolwait
1650  bool force_trylock = false
1651  ret等于1
1673  如果wait且非force_trylockpercpu_down_read(rw_sem + level - 1)
1675  否则ret等于percpu_down_read_trylock(rw_sem + level - 1)
1678  WARN_ON(force_trylock && !ret)
1679  返回:ret
调用者
名称描述
aio_write
io_write
sb_start_writesb_start_write - get write access to a superblock*@sb: the super we write to* When a process wants to write data or metadata to a file system (i.e. dirty* a page or an inode), it should embed the operation in a sb_start_write() -
sb_start_write_trylock
sb_start_pagefaultsb_start_pagefault - get write access to a superblock from a page fault*@sb: the super we write to* When a process starts handling write page fault, it should embed the* operation into sb_start_pagefault() - sb_end_pagefault() pair to get
sb_start_intwritesb_start_intwrite - get write access to a superblock for internal fs purposes*@sb: the super we write to* This is the third level of protection against filesystem freezing. It is* free for use by a filesystem. The only requirement is that it must rank
sb_start_intwrite_trylock
file_start_write
file_start_write_trylock