inode_congested (9) - Linux Man Pages
inode_congested: test whether an inode is congested
inode_congested - test whether an inode is congested
int inode_congested(struct inode
*inode, int cong_bits);
- inode to test for congestion (may be NULL)
- mask of WB_[a]sync_congested bits to test
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.