]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
fs/netfs: remove unused flag NETFS_SREQ_SEEK_DATA_READ
authorMax Kellermann <max.kellermann@ionos.com>
Mon, 19 May 2025 13:47:58 +0000 (14:47 +0100)
committerChristian Brauner <brauner@kernel.org>
Wed, 21 May 2025 12:34:37 +0000 (14:34 +0200)
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>
Documentation/filesystems/netfs_library.rst
include/linux/netfs.h

index 939b4b624fad4df1688051613a06457fef05a973..ddd799df6ce363d9c348b4f1e82d66b1b54bf4fd 100644 (file)
@@ -712,11 +712,6 @@ handle falling back from one source type to another.  The members are:
      at a boundary with the filesystem structure (e.g. at the end of a Ceph
      object).  It tells netfslib not to retile subrequests across it.
 
-   * ``NETFS_SREQ_SEEK_DATA_READ``
-
-     This is a hint from netfslib to the cache that it might want to try
-     skipping ahead to the next data (ie. using SEEK_DATA).
-
  * ``error``
 
    This is for the filesystem to store result of the subrequest.  It should be
index c86a11cfc4a36a001006279e09d1870895335771..d315d86d0ad452bf41121ea34894bfdb06e8fa29 100644 (file)
@@ -191,7 +191,6 @@ struct netfs_io_subrequest {
        unsigned long           flags;
 #define NETFS_SREQ_COPY_TO_CACHE       0       /* Set if should copy the data to the cache */
 #define NETFS_SREQ_CLEAR_TAIL          1       /* Set if the rest of the read should be cleared */
-#define NETFS_SREQ_SEEK_DATA_READ      3       /* Set if ->read() should SEEK_DATA first */
 #define NETFS_SREQ_MADE_PROGRESS       4       /* Set if we transferred at least some data */
 #define NETFS_SREQ_ONDEMAND            5       /* Set if it's from on-demand read mode */
 #define NETFS_SREQ_BOUNDARY            6       /* Set if ends on hard boundary (eg. ceph object) */