Commit f50d0328 authored by Mike Snitzer's avatar Mike Snitzer Committed by Trond Myklebust
Browse files

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: c817248f ("nfs/localio: add proper O_DIRECT support for READ and WRITE")
Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent a2a8fc27
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;