NFSv4: Reduce the footprint of the idmapper
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 7 Feb 2012 19:59:05 +0000 (14:59 -0500)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 25 Jul 2012 03:11:01 +0000 (04:11 +0100)
commit805292ea678d4855d1f12db5f1c1d1444b92d9d7
treea78c1720cea5b114ffb40637726325fce51c43de
parent8fc536fc7a502841b732edfc6d5a66f3c138132d
NFSv4: Reduce the footprint of the idmapper

commit d073e9b541e1ac3f52d72c3a153855d9a9ee3278 upstream.

Instead of pre-allocating the storage for all the strings, we can
significantly reduce the size of that table by doing the allocation
when we do the downcall.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
[bwh: Backported to 3.2: adjust context in nfs_idmap_delete()]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/nfs/idmap.c