]> www.infradead.org Git - users/dwmw2/linux.git/commit
nfs/localio: remove extra indirect nfs_to call to check {read,write}_iter
authorMike Snitzer <snitzer@kernel.org>
Thu, 3 Oct 2024 19:35:03 +0000 (15:35 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 8 Nov 2024 19:26:20 +0000 (14:26 -0500)
commit0978e5b85fc0867f53c5f4e5b7d2a5536a623e16
treed012a2773645e1c0d84a95c331f0294d107bba8b
parent894f5c5593cdb57841318597a800ad1d3cb45a52
nfs/localio: remove extra indirect nfs_to call to check {read,write}_iter

Push the read_iter and write_iter availability checks down to
nfs_do_local_read and nfs_do_local_write respectively.

This eliminates a redundant nfs_to->nfsd_file_file() call.

Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/localio.c