Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\fs-writeback.c Create Date:2022-07-28 20:10:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:int write_inode_now(struct inode *inode, int sync)

Type:int

Parameter:

TypeParameterName
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  If Not mapping_cap_writeback_dirty(i_mapping) Then Write this many pages, and decrementthis for each page written = 0
2584  might_sleep()
2585  Return 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
Caller
NameDescribe
bdev_write_inode