Lines Matching full:fsd
239 struct debugfs_fsdata *fsd = dentry->d_fsdata; in debugfs_release_dentry() local
241 if ((unsigned long)fsd & DEBUGFS_FSDATA_IS_REAL_FOPS_BIT) in debugfs_release_dentry()
244 kfree(fsd); in debugfs_release_dentry()
249 struct debugfs_fsdata *fsd = path->dentry->d_fsdata; in debugfs_automount() local
251 return fsd->automount(path->dentry, d_inode(path->dentry)->i_private); in debugfs_automount()
639 struct debugfs_fsdata *fsd; in debugfs_create_automount() local
645 fsd = kzalloc(sizeof(*fsd), GFP_KERNEL); in debugfs_create_automount()
646 if (!fsd) { in debugfs_create_automount()
651 fsd->automount = f; in debugfs_create_automount()
655 kfree(fsd); in debugfs_create_automount()
663 kfree(fsd); in debugfs_create_automount()
670 dentry->d_fsdata = fsd; in debugfs_create_automount()
735 struct debugfs_fsdata *fsd; in __debugfs_file_removed() local
744 fsd = READ_ONCE(dentry->d_fsdata); in __debugfs_file_removed()
745 if ((unsigned long)fsd & DEBUGFS_FSDATA_IS_REAL_FOPS_BIT) in __debugfs_file_removed()
747 if (!refcount_dec_and_test(&fsd->active_users)) in __debugfs_file_removed()
748 wait_for_completion(&fsd->active_users_drained); in __debugfs_file_removed()