Skip to content

Commit d46a7b2

Browse files
MaxKellermannbrauner
authored andcommitted
fs/netfs: remove unused enum choice NETFS_READ_HOLE_CLEAR
This choice was added by commit 3a11b3a ("netfs: Pass more information on how to deal with a hole in the cache") but the last user was removed by commit 86b374d ("netfs: Remove fs/netfs/io.c"). 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 9fcf235 commit d46a7b2

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

include/linux/fscache.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -498,9 +498,6 @@ static inline void fscache_end_operation(struct netfs_cache_resources *cres)
498498
*
499499
* NETFS_READ_HOLE_IGNORE - Just try to read (may return a short read).
500500
*
501-
* NETFS_READ_HOLE_CLEAR - Seek for data, clearing the part of the buffer
502-
* skipped over, then do as for IGNORE.
503-
*
504501
* NETFS_READ_HOLE_FAIL - Give ENODATA if we encounter a hole.
505502
*/
506503
static inline

include/linux/netfs.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,6 @@ struct netfs_request_ops {
318318
*/
319319
enum netfs_read_from_hole {
320320
NETFS_READ_HOLE_IGNORE,
321-
NETFS_READ_HOLE_CLEAR,
322321
NETFS_READ_HOLE_FAIL,
323322
};
324323

0 commit comments

Comments
 (0)