OSDN Git Service

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, 7 Jan 2022 09:22:19 +0000 (09:22 +0000)
commita39c41b853ee51f4dcd19f5556f860ae8e2f23d3
treecb034f74f37c24961b441a3bc49de07bea4b210c
parent9e1aa6b8f484dde5ada1212092d20ea3f55c24e8
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>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
cc: linux-cachefs@redhat.com
Link: https://lore.kernel.org/r/163819583123.215744.12783808230464471417.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/163906886835.143852.6689886781122679769.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/163967079100.1823006.12889542712309574359.stgit@warthog.procyon.org.uk/
Link: https://lore.kernel.org/r/164021489334.640689.3131206613015409076.stgit@warthog.procyon.org.uk/
fs/netfs/read_helper.c
include/linux/netfs.h