1D_ADD_CI(9)                      The Linux VFS                     D_ADD_CI(9)
2
3
4

NAME

6       d_add_ci - lookup or allocate new dentry with case-exact name
7

SYNOPSIS

9       struct dentry * d_add_ci(struct dentry * dentry, struct inode * inode,
10                                struct qstr * name);
11

ARGUMENTS

13       dentry
14           the negative dentry that was passed to the parent's lookup func
15
16       inode
17           the inode case-insensitive lookup has found
18
19       name
20           the case-exact name to be associated with the returned dentry
21

DESCRIPTION

23       This is to avoid filling the dcache with case-insensitive names to the
24       same inode, only the actual correct case is stored in the dcache for
25       case-insensitive filesystems.
26
27       For a case-insensitive lookup match and if the the case-exact dentry
28       already exists in in the dcache, use it and return it.
29
30       If no entry exists with the exact case name, allocate new dentry with
31       the exact case, and return the spliced entry.
32
34Kernel Hackers Manual 3.10         June 2019                       D_ADD_CI(9)
Impressum