On 5/19/23 18:35, Christoph Hellwig wrote: > Factor out a helper that calls filemap_write_and_wait_range and > invalidate_inode_pages2_rangefor a the range covered by a write kiocb or invalidate_inode_pages2_rangefor a the range -> invalidate_inode_pages2_range for the range > returns -EAGAIN if the kiocb is marked as nowait and there would be pages > to write or invalidate. > > Signed-off-by: Christoph Hellwig <hch@xxxxxx> Reviewed-by: Damien Le Moal <dlemoal@xxxxxxxxxx> -- Damien Le Moal Western Digital Research