Lines Matching defs:dentry
67 static struct dentry *ntfs_lookup(struct inode *dir, struct dentry *dentry,
78 err = ntfs_nls_to_utf16(ni->mi.sbi, dentry->d_name.name,
79 dentry->d_name.len, uni, NTFS_NAME_LEN,
101 return d_splice_alias(inode, dentry);
108 struct dentry *dentry, umode_t mode, bool excl)
110 return ntfs_create_inode(idmap, dir, dentry, NULL, S_IFREG | mode, 0,
118 struct dentry *dentry, umode_t mode, dev_t rdev)
120 return ntfs_create_inode(idmap, dir, dentry, NULL, mode, rdev, NULL, 0,
127 static int ntfs_link(struct dentry *ode, struct inode *dir, struct dentry *de)
169 static int ntfs_unlink(struct inode *dir, struct dentry *dentry)
183 err = ntfs_unlink_inode(dir, dentry);
194 struct dentry *dentry, const char *symname)
205 return ntfs_create_inode(idmap, dir, dentry, NULL, S_IFLNK | 0777, 0,
212 static struct dentry *ntfs_mkdir(struct mnt_idmap *idmap, struct inode *dir,
213 struct dentry *dentry, umode_t mode)
215 return ERR_PTR(ntfs_create_inode(idmap, dir, dentry, NULL,
222 static int ntfs_rmdir(struct inode *dir, struct dentry *dentry)
236 err = ntfs_unlink_inode(dir, dentry);
247 struct dentry *dentry, struct inode *new_dir,
248 struct dentry *new_dentry, u32 flags)
255 struct inode *inode = d_inode(dentry);
262 * [0-1024) - original name (dentry->d_name)
263 * [1024-2048) - paired to original name, usually DOS variant of dentry->d_name
281 is_same = dentry->d_name.len == new_dentry->d_name.len &&
282 !memcmp(dentry->d_name.name, new_dentry->d_name.name,
283 dentry->d_name.len);
311 /* Translate dentry->d_name into unicode form. */
312 err = fill_name_de(sbi, de, &dentry->d_name, NULL);
334 simple_rename_timestamp(dir, dentry, new_dir, new_dentry);
356 struct dentry *ntfs3_get_parent(struct dentry *child)
381 static int ntfs_d_hash(const struct dentry *dentry, struct qstr *name)
392 hash = init_name_hash(dentry);
414 sbi = dentry->d_sb->s_fs_info;
427 init_name_hash(dentry));
439 static int ntfs_d_compare(const struct dentry *dentry, unsigned int len1,
470 sbi = dentry->d_sb->s_fs_info;