+1
-1
fs/bfs/inode.c
+1
-1
fs/bfs/inode.c
+11
fs/dcache.c
+11
fs/dcache.c
···
2724
return memcpy(buffer, temp, sz);
2725
}
2726
2727
+
char *simple_dname(struct dentry *dentry, char *buffer, int buflen)
2728
+
{
2729
+
char *end = buffer + buflen;
2730
+
/* these dentries are never renamed, so d_lock is not needed */
2731
+
if (prepend(&end, &buflen, " (deleted)", 11) ||
2732
+
prepend_name(&end, &buflen, &dentry->d_name) ||
2733
+
prepend(&end, &buflen, "/", 1))
2734
+
end = ERR_PTR(-ENAMETOOLONG);
2735
+
return end;
2736
+
}
2737
+
2738
/*
2739
* Write full pathname from the root of the filesystem into the buffer.
2740
*/
+1
-1
fs/efs/inode.c
+1
-1
fs/efs/inode.c
+1
-7
fs/hugetlbfs/inode.c
+1
-7
fs/hugetlbfs/inode.c
···
926
return h - hstates;
927
}
928
929
-
static char *hugetlb_dname(struct dentry *dentry, char *buffer, int buflen)
930
-
{
931
-
return dynamic_dname(dentry, buffer, buflen, "/%s (deleted)",
932
-
dentry->d_name.name);
933
-
}
934
-
935
static struct dentry_operations anon_ops = {
936
-
.d_dname = hugetlb_dname
937
};
938
939
/*
+1
-1
fs/namespace.c
+1
-1
fs/namespace.c
-2
fs/proc/fd.c
-2
fs/proc/fd.c
+1
include/linux/dcache.h
+1
include/linux/dcache.h
···
336
* helper function for dentry_operations.d_dname() members
337
*/
338
extern char *dynamic_dname(struct dentry *, char *, int, const char *, ...);
339
340
extern char *__d_path(const struct path *, const struct path *, char *, int);
341
extern char *d_absolute_path(const struct path *, char *, int);
···
336
* helper function for dentry_operations.d_dname() members
337
*/
338
extern char *dynamic_dname(struct dentry *, char *, int, const char *, ...);
339
+
extern char *simple_dname(struct dentry *, char *, int);
340
341
extern char *__d_path(const struct path *, const struct path *, char *, int);
342
extern char *d_absolute_path(const struct path *, char *, int);
+1
-7
mm/shmem.c
+1
-7
mm/shmem.c
···
2909
2910
/* common code */
2911
2912
-
static char *shmem_dname(struct dentry *dentry, char *buffer, int buflen)
2913
-
{
2914
-
return dynamic_dname(dentry, buffer, buflen, "/%s (deleted)",
2915
-
dentry->d_name.name);
2916
-
}
2917
-
2918
static struct dentry_operations anon_ops = {
2919
-
.d_dname = shmem_dname
2920
};
2921
2922
/**