nfs: use kmap/kunmap directly
authorFabian Frederick <fabf@skynet.be>
Wed, 3 May 2017 18:52:21 +0000 (20:52 +0200)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 5 May 2017 17:01:33 +0000 (13:01 -0400)
commit0795bf8357c1887e2a95e6e4f5b89d0896a0d929
tree17bf2e660e93fe9ac45246abe138ef5273471c01
parent59b86d85a7a30ba56289cdac83cd66a7dd2adebf
nfs: use kmap/kunmap directly

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>
fs/nfs/dir.c