Message ID | 1473259610-3295-4-git-send-email-axboe@fb.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/include/linux/writeback.h b/include/linux/writeback.h index 608afd39b1c2..e53abf2bf2d8 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h @@ -104,6 +104,8 @@ static inline int wbc_to_write_flags(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 0; }
If we're doing background type writes, then use the appropriate write command for that. Signed-off-by: Jens Axboe <axboe@fb.com> --- include/linux/writeback.h | 2 ++ 1 file changed, 2 insertions(+)