The patch titled writeback: introduce wbc.for_background has been added to the -mm tree. Its filename is writeback-introduce-wbcfor_background.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: writeback: introduce wbc.for_background From: Wu Fengguang <fengguang.wu@xxxxxxxxx> It will lower the flush priority for NFS, and maybe more in future. Signed-off-by: Wu Fengguang <fengguang.wu@xxxxxxxxx> Cc: Trond Myklebust <Trond.Myklebust@xxxxxxxxxx> Cc: Jens Axboe <jens.axboe@xxxxxxxxxx> Cc: Christoph Hellwig <hch@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/fs-writeback.c | 1 + fs/nfs/write.c | 2 +- include/linux/writeback.h | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff -puN fs/fs-writeback.c~writeback-introduce-wbcfor_background fs/fs-writeback.c --- a/fs/fs-writeback.c~writeback-introduce-wbcfor_background +++ a/fs/fs-writeback.c @@ -731,6 +731,7 @@ static long wb_writeback(struct bdi_writ .sync_mode = args->sync_mode, .older_than_this = NULL, .for_kupdate = args->for_kupdate, + .for_background = args->for_background, .range_cyclic = args->range_cyclic, }; unsigned long oldest_jif; diff -puN fs/nfs/write.c~writeback-introduce-wbcfor_background fs/nfs/write.c --- a/fs/nfs/write.c~writeback-introduce-wbcfor_background +++ a/fs/nfs/write.c @@ -178,7 +178,7 @@ static int wb_priority(struct writeback_ { if (wbc->for_reclaim) return FLUSH_HIGHPRI | FLUSH_STABLE; - if (wbc->for_kupdate) + if (wbc->for_kupdate || wbc->for_background) return FLUSH_LOWPRI; return 0; } diff -puN include/linux/writeback.h~writeback-introduce-wbcfor_background include/linux/writeback.h --- a/include/linux/writeback.h~writeback-introduce-wbcfor_background +++ a/include/linux/writeback.h @@ -49,6 +49,7 @@ struct writeback_control { unsigned nonblocking:1; /* Don't get stuck on request queues */ unsigned encountered_congestion:1; /* An output: a queue is full */ unsigned for_kupdate:1; /* A kupdate writeback */ + unsigned for_background:1; /* A background writeback */ unsigned for_reclaim:1; /* Invoked from the page allocator */ unsigned range_cyclic:1; /* range_start is cyclic */ unsigned more_io:1; /* more io to be dispatched */ _ Patches currently in -mm which might be from fengguang.wu@xxxxxxxxx are writeback-remove-unused-nonblocking-and-congestion-checks-xfs.patch writeback-remove-the-always-false-bdi_cap_writeback_dirty-test.patch writeback-introduce-wbcfor_background.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html