[Cluster-devel] [PATCH 06/13] filemap: add a kiocb_invalidate_post_write helper

2023-05-19 Thread Christoph Hellwig
Add a helper to invalidate page cache after a dio write. Signed-off-by: Christoph Hellwig --- fs/direct-io.c | 10 ++ fs/iomap/direct-io.c| 12 ++-- include/linux/fs.h | 5 - include/linux/pagemap.h | 1 + mm/filemap.c| 37 -

Re: [Cluster-devel] [PATCH 06/13] filemap: add a kiocb_invalidate_post_write helper

2023-05-22 Thread Damien Le Moal
On 5/19/23 18:35, Christoph Hellwig wrote: > Add a helper to invalidate page cache after a dio write. > > Signed-off-by: Christoph Hellwig Nit: kiocb_invalidate_post_dio_write() may be a better name to be explicit about the fact that this is for DIOs only ? Otherwise looks ok to me. Reviewed-b

Re: [Cluster-devel] [PATCH 06/13] filemap: add a kiocb_invalidate_post_write helper

2023-05-23 Thread Christoph Hellwig
On Mon, May 22, 2023 at 08:56:34AM +0900, Damien Le Moal wrote: > On 5/19/23 18:35, Christoph Hellwig wrote: > > Add a helper to invalidate page cache after a dio write. > > > > Signed-off-by: Christoph Hellwig > > Nit: kiocb_invalidate_post_dio_write() may be a better name to be explicit > abo