diff --git a/include/linux/writeback.h b/include/linux/writeback.h index 50c96ee8108f90ed527ec9f7c28abe32420b225a..c78f9f0920b51b61bc8d954438e02eca5b4a6513 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h @@ -107,6 +107,8 @@ static inline int wbc_to_write_flags(struct writeback_control *wbc) { if (wbc->sync_mode == WB_SYNC_ALL) return REQ_SYNC; + else if (wbc->for_kupdate || wbc->for_background) + return REQ_BACKGROUND; return 0; }