函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:inode_to_bdi

函数原型:static inline struct backing_dev_info *inode_to_bdi(struct inode *inode)

返回类型:struct backing_dev_info

参数:

类型参数名称
struct inode *inode
163  如果非inode则返回:noop_backing_dev_info
166  sb等于i_sb
168  如果sb_is_blkdev_sb(sb)则返回:bd_bdi
171  返回:s_bdi
调用者
名称描述
__generic_file_write_iter__generic_file_write_iter - write data to a file*@iocb: IO state structure (file, offset, etc.)*@from: iov_iter with data to write* This function does all the work needed for actually writing data to a* file
generic_fadvisePOSIX_FADV_WILLNEED could set PG_Referenced, and POSIX_FADV_NOREUSE could* deactivate the pages and clear PG_Referenced.
balance_dirty_pages_ratelimitedalance_dirty_pages_ratelimited - balance dirty memory state*@mapping: address_space which was dirtied* Processes which are dirtying memory should call in here once for each page* which was newly dirtied. The function will periodically check the system's
write_cache_pageswrite_cache_pages - walk the list of dirty pages of the given address space and write all of them
test_clear_page_writeback
__test_set_page_writeback
wait_for_stable_pagewait_for_stable_page() - wait for writeback to finish, if necessary.*@page: The page to wait on.* This function determines if the given page is related to a backing device* that requires page contents to be held stable during writeback. If so, then
file_ra_state_initInitialise a struct file's readahead state. Assumes that the caller has* memset *ra to zero.
force_page_cache_readaheadChunk the readahead into 2 megabyte units, so that we don't pin too much* memory at once.
ondemand_readaheadA minimal readahead algorithm for trivial sequential/random reads.
may_write_to_inode
SYSCALL_DEFINE2
mapping_cap_writeback_dirty
mapping_cap_account_dirty
inode_to_wb
inode_congested