2023-05-30 07:00:41

by Hannes Reinecke

[permalink] [raw]
Subject: Re: [PATCH 05/11] filemap: add a kiocb_invalidate_pages helper

On 5/24/23 08:38, Christoph Hellwig wrote:
> Factor out a helper that calls filemap_write_and_wait_range and
> invalidate_inode_pages2_range for the range covered by a write kiocb or
> returns -EAGAIN if the kiocb is marked as nowait and there would be pages
> to write or invalidate.
>
> Signed-off-by: Christoph Hellwig <[email protected]>
> Reviewed-by: Damien Le Moal <[email protected]>
> Acked-by: Darrick J. Wong <[email protected]>
> ---
> include/linux/pagemap.h | 1 +
> mm/filemap.c | 48 ++++++++++++++++++++++++-----------------
> 2 files changed, 29 insertions(+), 20 deletions(-)
>
Reviewed-by: Hannes Reinecke <[email protected]>

Cheers,

Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
[email protected] +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Ivo Totev, Andrew
Myers, Andrew McDonald, Martje Boudien Moerman