From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Jens Axboe To: , , CC: , , , Jens Axboe Subject: [PATCH 3/8] writeback: use WRITE_BG for kupdate and background writeback Date: Tue, 26 Apr 2016 09:55:26 -0600 Message-ID: <1461686131-22999-4-git-send-email-axboe@fb.com> In-Reply-To: <1461686131-22999-1-git-send-email-axboe@fb.com> References: <1461686131-22999-1-git-send-email-axboe@fb.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: If we're doing background type writes, then use the appropriate write command for that. No functional changes in this patch. Signed-off-by: Jens Axboe --- include/linux/writeback.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/writeback.h b/include/linux/writeback.h index aa66fa05ff0d..6e4a35acaa3e 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h @@ -104,6 +104,8 @@ static inline int wbc_to_write_cmd(struct writeback_control *wbc) { if (wbc->sync_mode == WB_SYNC_ALL) return WRITE_SYNC; + else if (wbc->for_kupdate || wbc->for_background) + return WRITE_BG; return WRITE; } -- 2.8.0.rc4.6.g7e4ba36