aboutsummaryrefslogtreecommitdiffstats
path: root/fs/netfs/objects.c
diff options
context:
space:
mode:
authorMax Kellermann <[email protected]>2025-05-19 13:48:07 +0000
committerChristian Brauner <[email protected]>2025-05-21 12:34:38 +0000
commit4b1ca12dd3f2529dc788cf4f18259ed62006ccb8 (patch)
treecf79e22e356297d2917743822be419ef1960caed /fs/netfs/objects.c
parentfs/netfs: remove unused flag NETFS_RREQ_DONT_UNLOCK_FOLIOS (diff)
downloadkernel-4b1ca12dd3f2529dc788cf4f18259ed62006ccb8.tar.gz
kernel-4b1ca12dd3f2529dc788cf4f18259ed62006ccb8.zip
fs/netfs: remove unused flag NETFS_RREQ_BLOCKED
NETFS_RREQ_BLOCKED was added by commit 016dc8516aec ("netfs: Implement unbuffered/DIO read support") but has never been used either. Without NETFS_RREQ_BLOCKED, NETFS_RREQ_NONBLOCK makes no sense, and thus can be removed as well. 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]>
Diffstat (limited to 'fs/netfs/objects.c')
-rw-r--r--fs/netfs/objects.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/netfs/objects.c b/fs/netfs/objects.c
index dc6b41ef18b0..d6f8984f9f5b 100644
--- a/fs/netfs/objects.c
+++ b/fs/netfs/objects.c
@@ -64,8 +64,6 @@ struct netfs_io_request *netfs_alloc_request(struct address_space *mapping,
}
__set_bit(NETFS_RREQ_IN_PROGRESS, &rreq->flags);
- if (file && file->f_flags & O_NONBLOCK)
- __set_bit(NETFS_RREQ_NONBLOCK, &rreq->flags);
if (rreq->netfs_ops->init_request) {
ret = rreq->netfs_ops->init_request(rreq, file);
if (ret < 0) {