]> www.infradead.org Git - users/dwmw2/linux.git/commit
netfs: Set the request work function upon allocation
authorDavid Howells <dhowells@redhat.com>
Tue, 9 Jul 2024 08:47:17 +0000 (09:47 +0100)
committerChristian Brauner <brauner@kernel.org>
Thu, 5 Sep 2024 09:00:42 +0000 (11:00 +0200)
commit24c90a79f6068d309adda05d871855414bb75283
treee5328ece90959ef717585392d0f61053aebadd0d
parentc57de2a9259d7dc18a7a425fca91c77502263d8a
netfs: Set the request work function upon allocation

Set the work function in the netfs_io_request work_struct when we allocate
the request rather than doing this later.  This reduces the number of
places we need to set it in future code.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Jeff Layton <jlayton@kernel.org>
cc: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
Link: https://lore.kernel.org/r/20240814203850.2240469-11-dhowells@redhat.com/
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/netfs/internal.h
fs/netfs/io.c
fs/netfs/objects.c
fs/netfs/write_issue.c