]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix nfsstat breakage due to LOOKUPP
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 6 Jan 2018 14:53:49 +0000 (09:53 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 15 Jan 2018 04:06:29 +0000 (23:06 -0500)
commit09d69f31e7fe53d2ba08d2df57182d6b9ddae37e
treefc32845b930273396c5bde142b4f2077c6bf1664
parent4a7682997852839e221550f2ff9c291af803611c
NFS: Fix nfsstat breakage due to LOOKUPP

The LOOKUPP operation was inserted into the nfs4_procedures array
rather than being appended, which put /proc/net/rpc/nfs out of
whack, and broke the nfsstat utility.
Fix by moving the LOOKUPP operation to the end of the array, and
by ensuring that it keeps the same length whether or not NFSV4.1
and NFSv4.2 are compiled in.

Fixes: 40dd66cbeab5a ("nfs4: add NFSv4 LOOKUPP handlers")
Cc: stable@vger.kernel.org # v4.13+
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4xdr.c
include/linux/nfs4.h