mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
fs/netfs: remove unused source NETFS_INVALID_WRITE
This enum choice was added by commit16af134ca4("netfs: Extend the netfs_io_*request structs to handle writes") and its only user was later removed by commitc245868524("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>
This commit is contained in:
parent
c1a606cd75
commit
9cd78ca04f
|
|
@ -495,8 +495,6 @@ void netfs_write_subrequest_terminated(void *_op, ssize_t transferred_or_error,
|
|||
case NETFS_WRITE_TO_CACHE:
|
||||
netfs_stat(&netfs_n_wh_write_done);
|
||||
break;
|
||||
case NETFS_INVALID_WRITE:
|
||||
break;
|
||||
default:
|
||||
BUG();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@ enum netfs_io_source {
|
|||
NETFS_INVALID_READ,
|
||||
NETFS_UPLOAD_TO_SERVER,
|
||||
NETFS_WRITE_TO_CACHE,
|
||||
NETFS_INVALID_WRITE,
|
||||
} __mode(byte);
|
||||
|
||||
typedef void (*netfs_io_terminated_t)(void *priv, ssize_t transferred_or_error,
|
||||
|
|
|
|||
|
|
@ -77,8 +77,7 @@
|
|||
EM(NETFS_READ_FROM_CACHE, "READ") \
|
||||
EM(NETFS_INVALID_READ, "INVL") \
|
||||
EM(NETFS_UPLOAD_TO_SERVER, "UPLD") \
|
||||
EM(NETFS_WRITE_TO_CACHE, "WRIT") \
|
||||
E_(NETFS_INVALID_WRITE, "INVL")
|
||||
E_(NETFS_WRITE_TO_CACHE, "WRIT")
|
||||
|
||||
#define netfs_sreq_traces \
|
||||
EM(netfs_sreq_trace_add_donations, "+DON ") \
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user