nfs: use kmap/kunmap directly
authorFabian Frederick <fabf@skynet.be>
Wed, 3 May 2017 18:52:21 +0000 (20:52 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 22 May 2020 20:19:42 +0000 (21:19 +0100)
commit1680400380bde60cc95a782eb90490302b6f9e2a
treece52df00f394c347f0a22167546b081a10e24d76
parentb4664db5bbd36a178b75ea8b51bab921738f79b3
nfs: use kmap/kunmap directly

commit 0795bf8357c1887e2a95e6e4f5b89d0896a0d929 upstream.

This patch removes useless nfs_readdir_get_array() and
nfs_readdir_release_array() as suggested by Trond Myklebust

nfs_readdir() calls nfs_revalidate_mapping() before
readdir_search_pagecache() , nfs_do_filldir(), uncached_readdir()
so mapping should be correct.

While kmap() can't fail, all subsequent error checks were removed
as well as unused labels.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/nfs/dir.c