Skip to content

Commit f50d032

Browse files
Mike SnitzerTrond Myklebust
authored andcommitted
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: c817248 ("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>
1 parent a2a8fc2 commit f50d032

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

fs/nfs/localio.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,6 @@ nfs_is_local_dio_possible(struct nfs_local_kiocb *iocb, int rw,
339339

340340
if (unlikely(!nf_dio_mem_align || !nf_dio_offset_align))
341341
return false;
342-
if (unlikely(nf_dio_offset_align > PAGE_SIZE))
343-
return false;
344342
if (unlikely(len < nf_dio_offset_align))
345343
return false;
346344

0 commit comments

Comments
 (0)