mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 11:06:41 -05:00
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: c817248fc8 ("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>
This commit is contained in:
committed by
Trond Myklebust
parent
a2a8fc27dd
commit
f50d0328d0
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user