netfs: Make the refcounting of netfs_begin_read() easier to use
authorDavid Howells <dhowells@redhat.com>
Wed, 4 Oct 2023 15:15:48 +0000 (16:15 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 28 Dec 2023 09:45:20 +0000 (09:45 +0000)
commit4fcccc38ebbdcff74494701c50a8e2fe4689837e
tree15e593b4e75bff66f53c63af285eb102e1a8d0b1
parent6ba22d8d1521f35ca1343e64f69d7857f0340e5e
netfs: Make the refcounting of netfs_begin_read() easier to use

Make the refcounting of netfs_begin_read() easier to use by not eating the
caller's ref on the netfs_io_request it's given.  This makes it easier to
use when we need to look in the request struct after.

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_read.c
fs/netfs/io.c
include/trace/events/netfs.h