---
name: "inode_congested"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/inode_congested"
---

# inode\_congested(9)

test whether an inode is congested

## NAME

inode\_congested - test whether an inode is congested

## SYNOPSIS

**int inode\_congested(struct inode \*** *inode***, int** *cong\_bits***);**

## ARGUMENTS

*inode*

inode to test for congestion (may be NULL)

*cong\_bits*

mask of WB\_\[a\]sync\_congested bits to test

## DESCRIPTION

Tests whether *inode* is congested. *cong\_bits* is the mask of congestion bits to test and the return value is the mask of set bits.

If cgroup writeback is enabled for *inode*, the congestion state is determined by whether the cgwb (cgroup bdi\_writeback) for the blkcg associated with *inode* is congested; otherwise, the root wb's congestion state is used.

*inode* is allowed to be NULL as this function is often called on mapping-\>host which is NULL for the swapper space.

## COPYRIGHT
