From mboxrd@z Thu Jan 1 00:00:00 1970 From: Damien Le Moal Date: Mon, 22 May 2023 08:51:19 +0900 Subject: [Cluster-devel] [PATCH 05/13] filemap: add a kiocb_invalidate_pages helper In-Reply-To: <20230519093521.133226-6-hch@lst.de> References: <20230519093521.133226-1-hch@lst.de> <20230519093521.133226-6-hch@lst.de> Message-ID: List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 Reviewed-by: Damien Le Moal -- Damien Le Moal Western Digital Research