'\" t .\" Title: inode_congested .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: March 2017 .\" Manual: The Linux VFS .\" Source: Kernel Hackers Manual 4.10.7 .\" Language: English .\" .TH "INODE_CONGESTED" "9" "March 2017" "Kernel Hackers Manual 4\&.10\&" "The Linux VFS" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" inode_congested \- test whether an inode is congested .SH "SYNOPSIS" .HP \w'int\ inode_congested('u .BI "int inode_congested(struct\ inode\ *\ " "inode" ", int\ " "cong_bits" ");" .SH "ARGUMENTS" .PP \fIinode\fR .RS 4 inode to test for congestion (may be NULL) .RE .PP \fIcong_bits\fR .RS 4 mask of WB_[a]sync_congested bits to test .RE .SH "DESCRIPTION" .PP Tests whether \fIinode\fR is congested\&. \fIcong_bits\fR is the mask of congestion bits to test and the return value is the mask of set bits\&. .PP If cgroup writeback is enabled for \fIinode\fR, the congestion state is determined by whether the cgwb (cgroup bdi_writeback) for the blkcg associated with \fIinode\fR is congested; otherwise, the root wb\*(Aqs congestion state is used\&. .PP \fIinode\fR is allowed to be NULL as this function is often called on mapping\->host which is NULL for the swapper space\&. .SH "COPYRIGHT" .br