]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - include/linux/nfs4.h
NFS: Fix nfsstat breakage due to LOOKUPP
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 6 Jan 2018 14:53:49 +0000 (09:53 -0500)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 22 Feb 2018 14:15:51 +0000 (08:15 -0600)
commit16035c9c37bcd3a888b276f86d799e76d1f981ac
tree74044b2c6de19559bf07fe11b87213295d33ea8b
parent8aea358ba353412531dd567572349887da6cb107
NFS: Fix nfsstat breakage due to LOOKUPP

BugLink: http://bugs.launchpad.net/bugs/1751064
commit 8634ef5e05311f32d7f2aee06f6b27a8834a3bd6 upstream.

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: 5b5faaf6df734 ("nfs4: add NFSv4 LOOKUPP handlers")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
fs/nfs/nfs4xdr.c
include/linux/nfs4.h