diff options
author | Jeff Layton <jlayton@redhat.com> | 2012-10-10 22:43:13 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-13 02:15:10 +0200 |
commit | 7950e3852ab86826b7349a535d2e8b0000340d7f (patch) | |
tree | b07bcf28bf0fc3bdc610595287250c3c3a3d974a /.mailmap | |
parent | audit: make audit_inode take struct filename (diff) | |
download | linux-7950e3852ab86826b7349a535d2e8b0000340d7f.tar.xz linux-7950e3852ab86826b7349a535d2e8b0000340d7f.zip |
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 <jlayton@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions