rk: revert to v3.10
[firefly-linux-kernel-4.4.55.git] / fs / hugetlbfs / inode.c
index 4e5f332f15d99267e1b70c83450f2f42fb2d4a76..a3f868ae3fd48f043f91a059ede274b20b431c3b 100644 (file)
@@ -916,8 +916,14 @@ 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 = simple_dname
+       .d_dname = hugetlb_dname
 };
 
 /*