NFS: Clean up O_DIRECT request allocation
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 19 Jan 2023 21:33:47 +0000 (16:33 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 14 Feb 2023 19:22:33 +0000 (14:22 -0500)
commit70e9db69f927bb378db9aaa807cc83ae550779a9
treec24460dd4bc8463428905e679adbd19866ee2a5b
parent4fa7a717b432c3311192aa85a34fedf5f8de4689
NFS: Clean up O_DIRECT request allocation

Rather than adjusting the index+offset after the call to
nfs_create_request(), add a function nfs_page_create_from_page() that
takes an offset.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/direct.c
fs/nfs/pagelist.c
include/linux/nfs_page.h