diff options
author | David Howells <dhowells@redhat.com> | 2024-03-21 10:16:55 +0000 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2024-04-29 15:01:44 +0100 |
commit | 120b878158cb2e98b167fef038f81c05efe2fd14 (patch) | |
tree | 2fb3e4fd968b41f9a120cf773c4673aec24437a4 /fs/netfs/output.c | |
parent | 93bf1cc0096fa1e02244078db3334ca7fa1d88c1 (diff) |
netfs: Use subreq_counter to allocate subreq debug_index values
Use the subreq_counter in netfs_io_request to allocate subrequest
debug_index values in read ops as well as write ops.
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
Diffstat (limited to 'fs/netfs/output.c')
-rw-r--r-- | fs/netfs/output.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/netfs/output.c b/fs/netfs/output.c index fbdbb4f78234..e586396d6b72 100644 --- a/fs/netfs/output.c +++ b/fs/netfs/output.c @@ -37,7 +37,6 @@ struct netfs_io_subrequest *netfs_create_write_request(struct netfs_io_request * subreq->source = dest; subreq->start = start; subreq->len = len; - subreq->debug_index = atomic_inc_return(&wreq->subreq_counter); switch (subreq->source) { case NETFS_UPLOAD_TO_SERVER: |