diff options
author | David Howells <dhowells@redhat.com> | 2022-02-25 12:19:14 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2022-06-10 21:55:21 +0200 |
commit | 40a81101202300df7db273f77dda9fbe6271b1d2 (patch) | |
tree | 7d3590b1bc71454d1a685fff0855889393c00403 /fs/netfs | |
parent | netfs: Further cleanups after struct netfs_inode wrapper introduced (diff) | |
download | linux-40a81101202300df7db273f77dda9fbe6271b1d2.tar.xz linux-40a81101202300df7db273f77dda9fbe6271b1d2.zip |
netfs: Rename the netfs_io_request cleanup op and give it an op pointer
The netfs_io_request cleanup op is now always in a position to be given a
pointer to a netfs_io_request struct, so this can be passed in instead of
the mapping and private data arguments (both of which are included in the
struct).
So rename the ->cleanup op to ->free_request (to match ->init_request) and
pass in the I/O pointer.
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
cc: linux-cachefs@redhat.com
Diffstat (limited to 'fs/netfs')
-rw-r--r-- | fs/netfs/objects.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/netfs/objects.c b/fs/netfs/objects.c index c6afa605b63b..e17cdf53f6a7 100644 --- a/fs/netfs/objects.c +++ b/fs/netfs/objects.c @@ -75,10 +75,10 @@ static void netfs_free_request(struct work_struct *work) struct netfs_io_request *rreq = container_of(work, struct netfs_io_request, work); - netfs_clear_subrequests(rreq, false); - if (rreq->netfs_priv) - rreq->netfs_ops->cleanup(rreq->mapping, rreq->netfs_priv); trace_netfs_rreq(rreq, netfs_rreq_trace_free); + netfs_clear_subrequests(rreq, false); + if (rreq->netfs_ops->free_request) + rreq->netfs_ops->free_request(rreq); if (rreq->cache_resources.ops) rreq->cache_resources.ops->end_operation(&rreq->cache_resources); kfree(rreq); |