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 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").

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>

authored by

Max Kellermann and committed by
Christian Brauner
d46a7b21 9fcf235e

-4
-3
include/linux/fscache.h
··· 498 498 * 499 499 * NETFS_READ_HOLE_IGNORE - Just try to read (may return a short read). 500 500 * 501 - * NETFS_READ_HOLE_CLEAR - Seek for data, clearing the part of the buffer 502 - * skipped over, then do as for IGNORE. 503 - * 504 501 * NETFS_READ_HOLE_FAIL - Give ENODATA if we encounter a hole. 505 502 */ 506 503 static inline
-1
include/linux/netfs.h
··· 318 318 */ 319 319 enum netfs_read_from_hole { 320 320 NETFS_READ_HOLE_IGNORE, 321 - NETFS_READ_HOLE_CLEAR, 322 321 NETFS_READ_HOLE_FAIL, 323 322 }; 324 323