From: Jeff Layton Date: Wed, 10 Oct 2012 20:43:13 +0000 (-0400) Subject: vfs: embed struct filename inside of names_cache allocation if possible X-Git-Tag: v3.7-rc1~32^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7950e3852ab86826b7349a535d2e8b0000340d7f;p=pandora-kernel.git vfs: embed struct filename inside of names_cache allocation if possible In the common case where a name is much smaller than PATH_MAX, an extra allocation for struct filename is unnecessary. Before allocating a separate one, try to embed the struct filename inside the buffer first. If it turns out that that's not long enough, then fall back to allocating a separate struct filename and redoing the copy. Signed-off-by: Jeff Layton Signed-off-by: Al Viro --- Reading git-diff-tree failed