函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\fs-writeback.c Create Date:2022-07-29 10:41:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:write_inode_now - write an inode to disk*@inode: inode to write to disk*@sync: whether the write should be synchronous or not* This function commits an inode to disk immediately if it is dirty. This is* primarily needed by knfsd.

函数原型:int write_inode_now(struct inode *inode, int sync)

返回类型:int

参数:

类型参数名称
struct inode *inode
intsync
2574  struct writeback_control wbc = {Write this many pages, and decrementthis for each page written = LONG_MAX, sync_mode = sync ? Wait on every mapping : Don't wait on anything , For a_ops->writepages(): if start or end are non-zero then this is* a hint that the filesystem need only write out the pages inside that* byterange. The byte at `end' is included in the writeout request. = 0, range_end = LLONG_MAX, }
2581  如果非mapping_cap_writeback_dirty(i_mapping)则Write this many pages, and decrementthis for each page written 等于0
2584  might_sleep()
2585  返回:Write out an inode's dirty pages. Either the caller has an active reference* on the inode or the inode has I_WILL_FREE set.* This function is designed to be called for writing back one inode which* we go e
调用者
名称描述
bdev_write_inode