函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:writeback_chunk_size

函数原型:static long writeback_chunk_size(struct bdi_writeback *wb, struct wb_writeback_work *work)

返回类型:long

参数:

类型参数名称
struct bdi_writeback *wb
struct wb_writeback_work *work
1602  如果sync_mode恒等于Wait on every mapping tagged_writepagespages等于LONG_MAX
1604  否则
1605  pages等于两数取小(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等于两数取小(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  返回:pages
调用者
名称描述
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.