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:writeback_chunk_size

Proto:static long writeback_chunk_size(struct bdi_writeback *wb, struct wb_writeback_work *work)

Type:long

Parameter:

TypeParameterName
struct bdi_writeback *wb
struct wb_writeback_work *work
1602  If sync_mode == Wait on every mapping || tagged_writepages Then pages = LONG_MAX
1604  Else
1605  pages = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(urther smoothed write bw, > 0 / 2, dirty_limit / The 1/4 region under the global dirty thresh is for smooth dirty throttling:* (thresh - thresh/DIRTY_FULL_SCOPE, thresh)* Further beyond, all dirtier tasks will enter a loop waiting (possibly long)
1607  pages = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(pages, nr_pages)
1608  pages = und_down - round down to next specified power of 2*@x: the value to round*@y: multiple to round down to (must be a power of 2)* Rounds @x down to next multiple of @y (which must be a power of 2).* To perform arbitrary rounding down, use rounddown() below.(pages + 4MB minimal write chunk size, 4MB minimal write chunk size)
1612  Return pages
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.