]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
fs/netfs: remove unused enum choice NETFS_READ_HOLE_CLEAR
authorMax Kellermann <max.kellermann@ionos.com>
Mon, 19 May 2025 13:48:01 +0000 (14:48 +0100)
committerChristian Brauner <brauner@kernel.org>
Wed, 21 May 2025 12:34:37 +0000 (14:34 +0200)
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").

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/20250519134813.2975312-6-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>
include/linux/fscache.h
include/linux/netfs.h

index 9de27643607fb16a20e7ed3dbcd2c564e8e600aa..fea0d9779b55960f89d41c8db9d36ce3f261dd76 100644 (file)
@@ -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
index 242daec8c8378fc70adf3b56915158e4da905c1a..73537dafa2246117365bc56ce991400288a5decb 100644 (file)
@@ -318,7 +318,6 @@ struct netfs_request_ops {
  */
 enum netfs_read_from_hole {
        NETFS_READ_HOLE_IGNORE,
-       NETFS_READ_HOLE_CLEAR,
        NETFS_READ_HOLE_FAIL,
 };