cope with potentially long ->d_dname() output for shmem/hugetlb
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 24 Aug 2013 16:08:17 +0000 (12:08 -0400)
committerColin Cross <ccross@android.com>
Thu, 24 Apr 2014 00:03:01 +0000 (17:03 -0700)
commitdcccad71cfc9012fce4bdb780f5e7e6166bb7fa0
tree1d0c56b761e85b9964b3156be0170e81a048c73d
parentc1bceaea3e32167babd4c89c7085f4c2f6ad473f
cope with potentially long ->d_dname() output for shmem/hugetlb

commit 118b23022512eb2f41ce42db70dc0568d00be4ba upstream.

dynamic_dname() is both too much and too little for those - the
output may be well in excess of 64 bytes dynamic_dname() assumes
to be enough (thanks to ashmem feeding really long names to
shmem_file_setup()) and vsnprintf() is an overkill for those
guys.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: Colin Cross <ccross@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I70970c6125f377048664eb5bde08f3fae29aa348
fs/dcache.c
fs/hugetlbfs/inode.c
include/linux/dcache.h
mm/shmem.c