]> git.baikalelectronics.ru Git - kernel.git/commit
Add new functions for triggering inode writeback
authorChris Mason <chris.mason@oracle.com>
Fri, 29 Oct 2010 15:16:17 +0000 (11:16 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 29 Oct 2010 15:25:29 +0000 (11:25 -0400)
commit79e544fe942750e965a8b5fce12a65d17cd870bf
tree5f06f6c83413ca2fc7aec85ba0811a8c91904097
parente77c6c403aba862ee85f76ffc950767896c8c20e
Add new functions for triggering inode writeback

When btrfs is running low on metadata space, it needs to force delayed
allocation pages to disk.  It currently does this with a suboptimal walk
of a private list of inodes with delayed allocation, and it would be
much better if we used the generic flusher threads.

writeback_inodes_sb_if_idle would be ideal, but it waits for the flusher
thread to start IO on all the dirty pages in the FS before it returns.
This adds variants of writeback_inodes_sb* that allow the caller to
control how many pages get sent down.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/fs-writeback.c
include/linux/writeback.h