]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: make nfs4_init_uniform_client_string use a dynamically allocated buffer
authorJeff Layton <jlayton@poochiereds.net>
Tue, 9 Jun 2015 23:44:00 +0000 (19:44 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 16 Jun 2015 15:15:51 +0000 (11:15 -0400)
commit2d1abf8ca91a123b4a1bec050189d88c37953426
tree7e6da8a344b97af8f90f8569072a83d0e7734cc8
parentf9c64b9327a09ddbbf6690effa22a3e01e750a0b
nfs: make nfs4_init_uniform_client_string use a dynamically allocated buffer

Change the uniform client string generator to dynamically allocate the
NFSv4 client name string buffer. With this patch, we can eliminate the
buffers that are embedded within the "args" structs and simply use the
name string that is hanging off the client.

This uniform string case is a little simpler than the nonuniform since
we don't need to deal with RCU, but we do have two different cases,
depending on whether there is a uniquifier or not.

Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4proc.c
include/linux/nfs_xdr.h