]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
netfs: Pass a flag to ->prepare_write() to say if there's no alloc'd space
authorDavid Howells <dhowells@redhat.com>
Wed, 20 Oct 2021 13:30:37 +0000 (14:30 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 26 Nov 2021 14:28:51 +0000 (14:28 +0000)
commit687d0be11c82874a00985d7859da0179a6300a4a
tree692af8d6d5daa8c4940e8fa0b6a2ee02253ea938
parentac6f55f8bcaa948a1be9c599669e68081f7b8ca1
netfs: Pass a flag to ->prepare_write() to say if there's no alloc'd space

Pass a flag to ->prepare_write() to indicate if there's definitely no
space allocated in the cache yet (for instance if we've already checked as
we were asked to do a read).

Signed-off-by: David Howells <dhowells@redhat.com>
cc: linux-cachefs@redhat.com
fs/netfs/read_helper.c
include/linux/netfs.h