diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2013-08-24 12:08:17 -0400 |
|---|---|---|
| committer | Doug Zobel <dzobel1@motorola.com> | 2014-04-24 09:30:38 -0500 |
| commit | dd6a9016ed69d6f6fe51645241b0816cef38c2bb (patch) | |
| tree | 172327b4354e766715ff9655feabfc13e18d5bc3 /fs/hugetlbfs/inode.c | |
| parent | 4d318189f6193ff9a7a698cf2db801f93ca7f828 (diff) | |
| download | olio-linux-3.10-dd6a9016ed69d6f6fe51645241b0816cef38c2bb.tar.xz olio-linux-3.10-dd6a9016ed69d6f6fe51645241b0816cef38c2bb.zip | |
cope with potentially long ->d_dname() output for shmem/hugetlb
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>
Change-Id: I8c50754aee4757ca35d57d5418e62760b8f50857
Diffstat (limited to 'fs/hugetlbfs/inode.c')
| -rw-r--r-- | fs/hugetlbfs/inode.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index a3f868ae3fd..4e5f332f15d 100644 --- a/fs/hugetlbfs/inode.c +++ b/fs/hugetlbfs/inode.c @@ -916,14 +916,8 @@ static int get_hstate_idx(int page_size_log) return h - hstates; } -static char *hugetlb_dname(struct dentry *dentry, char *buffer, int buflen) -{ - return dynamic_dname(dentry, buffer, buflen, "/%s (deleted)", - dentry->d_name.name); -} - static struct dentry_operations anon_ops = { - .d_dname = hugetlb_dname + .d_dname = simple_dname }; /* |