]> Pileus Git - ~andy/linux/commit
NFSD: Combine decode operations for v4 and v4.1
authorAnna Schumaker <bjschuma@netapp.com>
Wed, 30 Oct 2013 14:00:20 +0000 (10:00 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 30 Oct 2013 14:04:08 +0000 (10:04 -0400)
commite1a90ebd8b2349eb00ec22f0b8bf6ab8bbd06cc8
tree0eb2d8a2ed995ced6594855ec2dbff846e2b759c
parent6f6cc3205c5f10129b8a10cdf8abf85d9db48a60
NFSD: Combine decode operations for v4 and v4.1

We were using a different array of function pointers to represent each
minor version.  This makes adding a new minor version tedious, since it
needs a step to copy, paste and modify a new version of the same
functions.

This patch combines the v4 and v4.1 arrays into a single instance and
will check minor version support inside each decoder function.

Signed-off-by: Anna Schumaker <bjschuma@netapp.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c