Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fs/netfs: remove unused source NETFS_INVALID_WRITE

This enum choice was added by commit 16af134ca4b7 ("netfs: Extend the
netfs_io_*request structs to handle writes") and its only user was
later removed by commit c245868524cc ("netfs: Remove the old writeback
code").

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/20250519134813.2975312-4-dhowells@redhat.com
cc: Paulo Alcantara <pc@manguebit.com>
cc: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>

authored by

Max Kellermann and committed by
Christian Brauner
9cd78ca0 c1a606cd

+1 -5
-2
fs/netfs/write_collect.c
··· 495 495 case NETFS_WRITE_TO_CACHE: 496 496 netfs_stat(&netfs_n_wh_write_done); 497 497 break; 498 - case NETFS_INVALID_WRITE: 499 - break; 500 498 default: 501 499 BUG(); 502 500 }
-1
include/linux/netfs.h
··· 48 48 NETFS_INVALID_READ, 49 49 NETFS_UPLOAD_TO_SERVER, 50 50 NETFS_WRITE_TO_CACHE, 51 - NETFS_INVALID_WRITE, 52 51 } __mode(byte); 53 52 54 53 typedef void (*netfs_io_terminated_t)(void *priv, ssize_t transferred_or_error,
+1 -2
include/trace/events/netfs.h
··· 77 77 EM(NETFS_READ_FROM_CACHE, "READ") \ 78 78 EM(NETFS_INVALID_READ, "INVL") \ 79 79 EM(NETFS_UPLOAD_TO_SERVER, "UPLD") \ 80 - EM(NETFS_WRITE_TO_CACHE, "WRIT") \ 81 - E_(NETFS_INVALID_WRITE, "INVL") 80 + E_(NETFS_WRITE_TO_CACHE, "WRIT") 82 81 83 82 #define netfs_sreq_traces \ 84 83 EM(netfs_sreq_trace_add_donations, "+DON ") \