Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1387652 > unrolled thread

[PATCH 3/8] writeback: use WRITE_BG for kupdate and background writeback

Started byJens Axboe <axboe@fb.com>
First post2016-04-26 18:00 +0200
Last post2016-04-26 18:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3/8] writeback: use WRITE_BG for kupdate and background writeback Jens Axboe <axboe@fb.com> - 2016-04-26 18:00 +0200

#1387652 — [PATCH 3/8] writeback: use WRITE_BG for kupdate and background writeback

FromJens Axboe <axboe@fb.com>
Date2016-04-26 18:00 +0200
Subject[PATCH 3/8] writeback: use WRITE_BG for kupdate and background writeback
Message-ID<rsdz5-1JO-43@gated-at.bofh.it>
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 <axboe@fb.com>
---
 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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web