Re: [PATCH] mm: Clean up filemap_write_and_wait()

From: Nikolay Borisov
Date: Wed Nov 20 2019 - 03:03:16 EST




On 20.11.19 Ð. 8:23 Ñ., ira.weiny@xxxxxxxxx wrote:
> From: Ira Weiny <ira.weiny@xxxxxxxxx>
>
> At some point filemap_write_and_wait() and
> filemap_write_and_wait_range() got the exact same implementation with
> the exception of the range being specified in *_range()
>
> Similar to other functions in fs.h which call
> *_range(..., 0, LLONG_MAX), change filemap_write_and_wait() to be a
> static inline which calls filemap_write_and_wait_range()
>
> Signed-off-by: Ira Weiny <ira.weiny@xxxxxxxxx>

Reviewed-by: Nikolay Borisov <nborisov@xxxxxxxx>