Skip to contentSkip to conversation

fs/netfs: remove unused enum choice NETFS_READ_HOLE_CLEAR

PATCH New Max Kellermann 1 participant 1 message Apr 28, 2025 Filesystems netfs library

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/netfs: remove unused enum choice NETFS_READ_HOLE_CLEAR

This choice was added by commit 3a11b3a86366 ("netfs: Pass more information on how to deal with a hole in the cache") but the last user was removed by commit 86b374d061ee ("netfs: Remove fs/netfs/io.c").

---
 include/linux/fscache.h | 3 ---
 include/linux/netfs.h   | 1 -
 2 files changed, 4 deletions(-)
include/linux/fscache.h +0 -3
index 9de27643607f..fea0d9779b55 100644
@@ -498,9 +498,6 @@ static inline void fscache_end_operation(struct netfs_cache_resources *cres)
  *
  *	NETFS_READ_HOLE_IGNORE - Just try to read (may return a short read).
  *
- *	NETFS_READ_HOLE_CLEAR - Seek for data, clearing the part of the buffer
- *				skipped over, then do as for IGNORE.
- *
  *	NETFS_READ_HOLE_FAIL - Give ENODATA if we encounter a hole.
  */
 static inline
include/linux/netfs.h +0 -1
index c86a11cfc4a3..d161bbf1f29c 100644
@@ -321,7 +321,6 @@ struct netfs_request_ops {
  */
 enum netfs_read_from_hole {
 	NETFS_READ_HOLE_IGNORE,
-	NETFS_READ_HOLE_CLEAR,
 	NETFS_READ_HOLE_FAIL,
 };
 
Signature · 1 line
2.47.2