Lines Matching full:fsd
216 struct debugfs_fsdata *fsd = dentry->d_fsdata; in debugfs_release_dentry() local
218 if ((unsigned long)fsd & DEBUGFS_FSDATA_IS_REAL_FOPS_BIT) in debugfs_release_dentry()
221 kfree(fsd); in debugfs_release_dentry()
226 struct debugfs_fsdata *fsd = path->dentry->d_fsdata; in debugfs_automount() local
228 return fsd->automount(path->dentry, d_inode(path->dentry)->i_private); in debugfs_automount()
606 struct debugfs_fsdata *fsd; in debugfs_create_automount() local
612 fsd = kzalloc(sizeof(*fsd), GFP_KERNEL); in debugfs_create_automount()
613 if (!fsd) { in debugfs_create_automount()
618 fsd->automount = f; in debugfs_create_automount()
622 kfree(fsd); in debugfs_create_automount()
630 kfree(fsd); in debugfs_create_automount()
637 dentry->d_fsdata = fsd; in debugfs_create_automount()
702 struct debugfs_fsdata *fsd; in __debugfs_file_removed() local
711 fsd = READ_ONCE(dentry->d_fsdata); in __debugfs_file_removed()
712 if ((unsigned long)fsd & DEBUGFS_FSDATA_IS_REAL_FOPS_BIT) in __debugfs_file_removed()
714 if (!refcount_dec_and_test(&fsd->active_users)) in __debugfs_file_removed()
715 wait_for_completion(&fsd->active_users_drained); in __debugfs_file_removed()