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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Oct 2013 14:45:45 +0000 (07:45 -0700)
commitad4c3cc41d6248a80231a6b87f1dab31542f011c
treeb074753cd8c210c33d32f383623a3ebee569d6c7
parent92a02b07759bb5cbed4a4793019d14247649925c
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>
fs/dcache.c
fs/hugetlbfs/inode.c
include/linux/dcache.h
mm/shmem.c