Thread (7 messages) 7 messages, 3 authors, 2012-10-01

Re: [PATCH] Btrfs: shrink_delalloc check bdi write congested

From: David Sterba <hidden>
Date: 2012-09-29 16:21:48

On Sat, Sep 29, 2012 at 10:20:09PM +0900, Itaru Kitayama wrote:
quoted hunk ↗ jump to hunk
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -3712,7 +3712,7 @@ static void shrink_delalloc(struct btrfs_root *root, u64 t
        while (delalloc_bytes && loops < 3) {
                max_reclaim = min(delalloc_bytes, to_reclaim);
                nr_pages = max_reclaim >> PAGE_CACHE_SHIFT;
-               writeback_inodes_sb_nr_if_idle(root->fs_info->sb, nr_pages,
+               if (!bdi_write_congested(root->fs_info->sb->s_bdi)) writeback_in
                                               WB_REASON_FS_FREE_SPACE);
malformed patch
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help