netfs: Allow buffered shared-writeable mmap through netfs_page_mkwrite()
authorDavid Howells <dhowells@redhat.com>
Tue, 15 Feb 2022 23:15:57 +0000 (23:15 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 28 Dec 2023 09:45:24 +0000 (09:45 +0000)
commit102a7e2c598c22bd2621fa97eb1c93c89d469a12
tree73d4ffcd3b7b96fbc5435afc1cee21c83bab9173
parent938e13a73b244278a3777f38fa915bd239b2efd2
netfs: Allow buffered shared-writeable mmap through netfs_page_mkwrite()

Provide an entry point to delegate a filesystem's ->page_mkwrite() to.
This checks for conflicting writes, then attached any netfs-specific group
marking (e.g. ceph snap) to the page to be considered dirty.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
cc: linux-cachefs@redhat.com
cc: linux-fsdevel@vger.kernel.org
cc: linux-mm@kvack.org
fs/netfs/buffered_write.c
include/linux/netfs.h