Lines Matching full:fsd
247 struct debugfs_fsdata *fsd = dentry->d_fsdata; in debugfs_release_dentry() local
249 if (fsd) { in debugfs_release_dentry()
250 WARN_ON(!list_empty(&fsd->cancellations)); in debugfs_release_dentry()
251 mutex_destroy(&fsd->cancellations_mtx); in debugfs_release_dentry()
253 kfree(fsd); in debugfs_release_dentry()
714 struct debugfs_fsdata *fsd; in __debugfs_file_removed() local
723 fsd = READ_ONCE(dentry->d_fsdata); in __debugfs_file_removed()
724 if (!fsd) in __debugfs_file_removed()
728 if (refcount_dec_and_test(&fsd->active_users)) in __debugfs_file_removed()
749 while (refcount_read(&fsd->active_users)) { in __debugfs_file_removed()
762 mutex_lock(&fsd->cancellations_mtx); in __debugfs_file_removed()
763 while ((c = list_first_entry_or_null(&fsd->cancellations, in __debugfs_file_removed()
768 mutex_unlock(&fsd->cancellations_mtx); in __debugfs_file_removed()
770 wait_for_completion(&fsd->active_users_drained); in __debugfs_file_removed()