Skip to content

Commit 9cd78ca

Browse files
MaxKellermannbrauner
authored andcommitted
fs/netfs: remove unused source NETFS_INVALID_WRITE
This enum choice was added by commit 16af134 ("netfs: Extend the netfs_io_*request structs to handle writes") and its only user was later removed by commit c245868 ("netfs: Remove the old writeback code"). Signed-off-by: Max Kellermann <[email protected]> Signed-off-by: David Howells <[email protected]> Link: https://lore.kernel.org/[email protected] cc: Paulo Alcantara <[email protected]> cc: [email protected] cc: [email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent c1a606c commit 9cd78ca

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

fs/netfs/write_collect.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,8 +495,6 @@ void netfs_write_subrequest_terminated(void *_op, ssize_t transferred_or_error,
495495
case NETFS_WRITE_TO_CACHE:
496496
netfs_stat(&netfs_n_wh_write_done);
497497
break;
498-
case NETFS_INVALID_WRITE:
499-
break;
500498
default:
501499
BUG();
502500
}

include/linux/netfs.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ enum netfs_io_source {
4848
NETFS_INVALID_READ,
4949
NETFS_UPLOAD_TO_SERVER,
5050
NETFS_WRITE_TO_CACHE,
51-
NETFS_INVALID_WRITE,
5251
} __mode(byte);
5352

5453
typedef void (*netfs_io_terminated_t)(void *priv, ssize_t transferred_or_error,

include/trace/events/netfs.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@
7777
EM(NETFS_READ_FROM_CACHE, "READ") \
7878
EM(NETFS_INVALID_READ, "INVL") \
7979
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")
8281

8382
#define netfs_sreq_traces \
8483
EM(netfs_sreq_trace_add_donations, "+DON ") \

0 commit comments

Comments
 (0)