]> 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)
commit857d157146760eff5a16b87092f1bcb2b8a235b7
tree7e6da8a344b97af8f90f8569072a83d0e7734cc8
parent96ce99bc1a6a97c122b599de1fa89a060197d207
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