Lines Matching defs:dentry

110  * and attach a dentry to that inode.
119 struct dentry *dentry, *root;
186 dentry = simple_start_creating(root, name);
187 if (IS_ERR(dentry)) {
188 ret = PTR_ERR(dentry);
193 d_make_persistent(dentry, inode);
194 fsnotify_create(root->d_inode, dentry);
195 simple_done_creating(dentry);
315 static int binderfs_show_options(struct seq_file *seq, struct dentry *root)
339 static inline bool is_binderfs_control_device(const struct dentry *dentry)
341 struct binderfs_info *info = dentry->d_sb->s_fs_info;
343 return info->control_dentry == dentry;
347 struct inode *old_dir, struct dentry *old_dentry,
348 struct inode *new_dir, struct dentry *new_dentry,
359 static int binderfs_unlink(struct inode *dir, struct dentry *dentry)
361 if (is_binderfs_control_device(dentry))
364 return simple_unlink(dir, dentry);
387 struct dentry *dentry;
390 struct dentry *root = sb->s_root;
431 dentry = d_alloc_name(root, "binder-control");
432 if (!dentry)
436 info->control_dentry = dentry;
437 d_make_persistent(dentry, inode);
438 dput(dentry);
468 struct dentry *binderfs_create_file(struct dentry *parent, const char *name,
472 struct dentry *dentry;
478 dentry = simple_start_creating(parent, name);
479 if (IS_ERR(dentry))
480 return dentry;
485 simple_done_creating(dentry);
491 d_make_persistent(dentry, new_inode);
492 fsnotify_create(parent_inode, dentry);
493 simple_done_creating(dentry);
494 return dentry; // borrowed
497 static struct dentry *binderfs_create_dir(struct dentry *parent,
500 struct dentry *dentry;
506 dentry = simple_start_creating(parent, name);
507 if (IS_ERR(dentry))
508 return dentry;
513 simple_done_creating(dentry);
521 d_make_persistent(dentry, new_inode);
523 fsnotify_mkdir(parent_inode, dentry);
524 simple_done_creating(dentry);
525 return dentry;
540 struct dentry *dentry, *dir;
546 dentry = binderfs_create_file(dir, "oneway_spam_detection",
549 if (IS_ERR(dentry))
550 return PTR_ERR(dentry);
552 dentry = binderfs_create_file(dir, "extended_error",
555 if (IS_ERR(dentry))
556 return PTR_ERR(dentry);
558 dentry = binderfs_create_file(dir, "freeze_notification",
561 if (IS_ERR(dentry))
562 return PTR_ERR(dentry);
564 dentry = binderfs_create_file(dir, "transaction_report",
567 if (IS_ERR(dentry))
568 return PTR_ERR(dentry);
575 struct dentry *binder_logs_root_dir, *dentry, *proc_log_dir;
588 dentry = binderfs_create_file(binder_logs_root_dir,
592 if (IS_ERR(dentry)) {
593 ret = PTR_ERR(dentry);