]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd4: decrease nfsd4_encode_fattr stack usage
authorJ. Bruce Fields <bfields@redhat.com>
Wed, 15 Jan 2014 17:21:12 +0000 (12:21 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 24 Jan 2014 20:58:21 +0000 (15:58 -0500)
commite1c91a5f712b6770be68979f07f57610a3ca153b
treeee0f62664a334349fc18445deef62cca0cd31e3a
parentdd2da72535ab873026b5978fe35b90fd567055d9
nfsd4: decrease nfsd4_encode_fattr stack usage

A struct svc_fh is 320 bytes on x86_64, it'd be better not to have these
on the stack.

kmalloc'ing them probably isn't ideal either, but this is the simplest
thing to do.  If it turns out to be a problem in the readdir case then
we could add a svc_fh to nfsd4_readdir and pass that in.

Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c