Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fs/netfs: remove unused flag NETFS_SREQ_SEEK_DATA_READ

This flag was added by commit 3d3c95046742 ("netfs: Provide readahead
and readpage netfs helpers") but its only 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-3-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
c1a606cd a1b4a25a

-6
-5
Documentation/filesystems/netfs_library.rst
··· 712 712 at a boundary with the filesystem structure (e.g. at the end of a Ceph 713 713 object). It tells netfslib not to retile subrequests across it. 714 714 715 - * ``NETFS_SREQ_SEEK_DATA_READ`` 716 - 717 - This is a hint from netfslib to the cache that it might want to try 718 - skipping ahead to the next data (ie. using SEEK_DATA). 719 - 720 715 * ``error`` 721 716 722 717 This is for the filesystem to store result of the subrequest. It should be
-1
include/linux/netfs.h
··· 191 191 unsigned long flags; 192 192 #define NETFS_SREQ_COPY_TO_CACHE 0 /* Set if should copy the data to the cache */ 193 193 #define NETFS_SREQ_CLEAR_TAIL 1 /* Set if the rest of the read should be cleared */ 194 - #define NETFS_SREQ_SEEK_DATA_READ 3 /* Set if ->read() should SEEK_DATA first */ 195 194 #define NETFS_SREQ_MADE_PROGRESS 4 /* Set if we transferred at least some data */ 196 195 #define NETFS_SREQ_ONDEMAND 5 /* Set if it's from on-demand read mode */ 197 196 #define NETFS_SREQ_BOUNDARY 6 /* Set if ends on hard boundary (eg. ceph object) */