Lines Matching defs:fsd
52 struct debugfs_fsdata *fsd = F_DENTRY(filp)->d_fsdata;
54 if ((unsigned long)fsd & DEBUGFS_FSDATA_IS_REAL_FOPS_BIT) {
63 return fsd->real_fops;
84 struct debugfs_fsdata *fsd;
97 fsd = d_fsd;
99 fsd = kmalloc(sizeof(*fsd), GFP_KERNEL);
100 if (!fsd)
103 fsd->real_fops = (void *)((unsigned long)d_fsd &
105 refcount_set(&fsd->active_users, 1);
106 init_completion(&fsd->active_users_drained);
107 if (cmpxchg(&dentry->d_fsdata, d_fsd, fsd) != d_fsd) {
108 kfree(fsd);
109 fsd = READ_ONCE(dentry->d_fsdata);
124 if (!refcount_inc_not_zero(&fsd->active_users))
142 struct debugfs_fsdata *fsd = READ_ONCE(dentry->d_fsdata);
144 if (refcount_dec_and_test(&fsd->active_users))
145 complete(&fsd->active_users_drained);