Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13edd5e7 authored by Jens Axboe's avatar Jens Axboe
Browse files

writeback: mark background writeback as such



If we're doing background type writes, then use the appropriate
background write flags for that.

Signed-off-by: default avatarJens Axboe <axboe@fb.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
parent 7637241e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
}