Lines Matching defs:fsd
218 struct debugfs_fsdata *fsd = dentry->d_fsdata;
220 if ((unsigned long)fsd & DEBUGFS_FSDATA_IS_REAL_FOPS_BIT)
224 if (fsd && fsd->real_fops) {
225 WARN_ON(!list_empty(&fsd->cancellations));
226 mutex_destroy(&fsd->cancellations_mtx);
229 kfree(fsd);
234 struct debugfs_fsdata *fsd = path->dentry->d_fsdata;
236 return fsd->automount(path->dentry, d_inode(path->dentry)->i_private);
633 struct debugfs_fsdata *fsd;
639 fsd = kzalloc(sizeof(*fsd), GFP_KERNEL);
640 if (!fsd) {
645 fsd->automount = f;
649 kfree(fsd);
657 kfree(fsd);
664 dentry->d_fsdata = fsd;
729 struct debugfs_fsdata *fsd;
738 fsd = READ_ONCE(dentry->d_fsdata);
739 if ((unsigned long)fsd & DEBUGFS_FSDATA_IS_REAL_FOPS_BIT)
743 if (refcount_dec_and_test(&fsd->active_users))
764 while (refcount_read(&fsd->active_users)) {
777 mutex_lock(&fsd->cancellations_mtx);
778 while ((c = list_first_entry_or_null(&fsd->cancellations,
783 mutex_unlock(&fsd->cancellations_mtx);
785 wait_for_completion(&fsd->active_users_drained);