Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Sleep until I_SYNC is cleared. This function must be called with i_lock* held and drops it. It is aimed for callers not holding any inode reference* so once i_lock is dropped, inode can go away.

Proto:static void inode_sleep_on_writeback(struct inode *inode)__releases(inode->i_lock)

Type:void

Parameter:

TypeParameterName
struct inode *inode
1357  DEFINE_WAIT(wait)
1358  wqh = bit_waitqueue( & Misc , Writeback of inode is running)
1361  Note: we use "set_current_state()" _after_ the wait-queue add,* because we need a memory barrier there on SMP, so that any* wake-function that tests for the wait-queue being active* will be guaranteed to see waitqueue addition _or_ subsequent
1362  sleep = Misc & Writeback of inode is running
1363  spin_unlock( & _blocks, i_bytes, maybe i_size )
1364  If sleep Then schedule()
1366  sh_wait - clean up after waiting in a queue*@wq_head: waitqueue waited on*@wq_entry: wait descriptor* Sets current thread back to running state and removes* the wait descriptor from the given waitqueue if still* queued.
Caller
NameDescribe
writeback_sb_inodesWrite a portion of b_io inodes which belong to @sb.* Return the number of pages and/or inodes written.* NOTE! This is called with wb->list_lock held, and will* unlock and relock that for each inode it ends up doing* IO for.
wb_writebackExplicit flushing or periodic writeback of "old" data