On Mon, Jun 04, 2018 at 03:58:52PM +0200, Christoph Hellwig wrote:
> So don't bother handling it.
> 
> Signed-off-by: Christoph Hellwig <h...@lst.de>
> ---
>  block/bio.c | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
> 
> diff --git a/block/bio.c b/block/bio.c
> index 50941c1c9118..d95fab72acb5 100644
> --- a/block/bio.c
> +++ b/block/bio.c
> @@ -1578,10 +1578,8 @@ void bio_set_pages_dirty(struct bio *bio)
>       int i;
>  
>       bio_for_each_segment_all(bvec, bio, i) {
> -             struct page *page = bvec->bv_page;
> -
> -             if (page && !PageCompound(page))
> -                     set_page_dirty_lock(page);
> +             if (!PageCompound(bvec->bv_page))
> +                     set_page_dirty_lock(bvec->bv_page);
>       }
>  }

Looks reasonable:

Reviewed-by: Ming Lei <ming....@redhat.com>


Thanks,
Ming

Reply via email to