]> git.karo-electronics.de Git - karo-tx-linux.git/commit
9p: don't use __getname/__putname for uname/aname
authorJeff Layton <jlayton@redhat.com>
Wed, 10 Oct 2012 20:43:20 +0000 (16:43 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 11 Oct 2012 15:43:43 +0000 (11:43 -0400)
commit56f4639bd98fc3a85ccca81c470be060bd9e1144
treea98b870c93fd30a846d61acb305cc7880380f884
parentd8c6f619a775ca3eaf3b5ff60b4b569d3aa7f07b
9p: don't use __getname/__putname for uname/aname

These are generally very small strings. We don't need an entire 4k
allocation for each. Instead, just free and reallocate them on an
as-needed basis.

Note: This patch is untested since I don't have a 9p server available at
the moment. It's mainly something I noticed while doing some
getname/putname cleanup work.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/9p/v9fs.c