Lines Matching full:fsd
244 struct debugfs_fsdata *fsd = dentry->d_fsdata; in debugfs_release_dentry() local
246 if (fsd) { in debugfs_release_dentry()
247 WARN_ON(!list_empty(&fsd->cancellations)); in debugfs_release_dentry()
248 mutex_destroy(&fsd->cancellations_mtx); in debugfs_release_dentry()
250 kfree(fsd); in debugfs_release_dentry()
719 struct debugfs_fsdata *fsd; in __debugfs_file_removed() local
728 fsd = READ_ONCE(dentry->d_fsdata); in __debugfs_file_removed()
729 if (!fsd) in __debugfs_file_removed()
733 if (refcount_dec_and_test(&fsd->active_users)) in __debugfs_file_removed()
754 while (refcount_read(&fsd->active_users)) { in __debugfs_file_removed()
767 mutex_lock(&fsd->cancellations_mtx); in __debugfs_file_removed()
768 while ((c = list_first_entry_or_null(&fsd->cancellations, in __debugfs_file_removed()
773 mutex_unlock(&fsd->cancellations_mtx); in __debugfs_file_removed()
775 wait_for_completion(&fsd->active_users_drained); in __debugfs_file_removed()