summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@hammerspace.com>2025-11-26 01:01:26 -0500
committerTrond Myklebust <trond.myklebust@hammerspace.com>2025-12-05 19:34:29 -0500
commitf50d0328d02fe38ba196a73c143e5d87e341d4f7 (patch)
tree7a525166846ec39cc80cd5bf63be97b2c709486c
parenta2a8fc27dd668e7562b5326b5ed2f1604cb1e2e9 (diff)
nfs/localio: remove alignment size checking in nfs_is_local_dio_possible
This check to ensure dio_offset_align isn't larger than PAGE_SIZE is no longer relevant (older iterations of NFS Direct was allocating misaligned head and tail pages but no longer does, so this check isn't needed). Fixes: c817248fc831 ("nfs/localio: add proper O_DIRECT support for READ and WRITE") Signed-off-by: Mike Snitzer <snitzer@kernel.org> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
-rw-r--r--fs/nfs/localio.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/nfs/localio.c b/fs/nfs/localio.c
index 656976b4f42c..512d9c5ff608 100644
--- a/fs/nfs/localio.c
+++ b/fs/nfs/localio.c
@@ -339,8 +339,6 @@ nfs_is_local_dio_possible(struct nfs_local_kiocb *iocb, int rw,
if (unlikely(!nf_dio_mem_align || !nf_dio_offset_align))
return false;
- if (unlikely(nf_dio_offset_align > PAGE_SIZE))
- return false;
if (unlikely(len < nf_dio_offset_align))
return false;