[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20161105222637.GC32353@quack2.suse.cz>
Date: Sat, 5 Nov 2016 23:26:37 +0100
From: Jan Kara <jack@...e.cz>
To: Jens Axboe <axboe@...com>
Cc: axboe@...nel.dk, linux-kernel@...r.kernel.org,
linux-fsdevel@...r.kernel.org, linux-block@...r.kernel.org,
jack@...e.cz, hch@....de
Subject: Re: [PATCH 3/8] writeback: mark background writeback as such
On Tue 01-11-16 15:08:46, Jens Axboe wrote:
> If we're doing background type writes, then use the appropriate
> background write flags for that.
>
> Signed-off-by: Jens Axboe <axboe@...com>
Looks good. You can add:
Reviewed-by: Jan Kara <jack@...e.cz>
Honza
> ---
> include/linux/writeback.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/include/linux/writeback.h b/include/linux/writeback.h
> index 50c96ee8108f..c78f9f0920b5 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;
> }
> --
> 2.7.4
>
--
Jan Kara <jack@...e.com>
SUSE Labs, CR
Powered by blists - more mailing lists