Lines Matching refs:fs_fcheck

152 	spin_lock(&entry->fs_fcheck->fc_lock);  in ocfs2_filecheck_sysfs_free()
153 while (!list_empty(&entry->fs_fcheck->fc_head)) { in ocfs2_filecheck_sysfs_free()
154 p = list_first_entry(&entry->fs_fcheck->fc_head, in ocfs2_filecheck_sysfs_free()
160 spin_unlock(&entry->fs_fcheck->fc_lock); in ocfs2_filecheck_sysfs_free()
162 kfree(entry->fs_fcheck); in ocfs2_filecheck_sysfs_free()
163 entry->fs_fcheck = NULL; in ocfs2_filecheck_sysfs_free()
192 entry->fs_fcheck = fcheck; in ocfs2_filecheck_create_sysfs()
198 if (!osb->osb_fc_ent.fs_fcheck) in ocfs2_filecheck_remove_sysfs()
219 spin_lock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_adjust_max()
220 if (len < (ent->fs_fcheck->fc_size - ent->fs_fcheck->fc_done)) { in ocfs2_filecheck_adjust_max()
224 len, ent->fs_fcheck->fc_size - ent->fs_fcheck->fc_done); in ocfs2_filecheck_adjust_max()
227 if (len < ent->fs_fcheck->fc_size) in ocfs2_filecheck_adjust_max()
229 ent->fs_fcheck->fc_size - len)); in ocfs2_filecheck_adjust_max()
231 ent->fs_fcheck->fc_max = len; in ocfs2_filecheck_adjust_max()
234 spin_unlock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_adjust_max()
313 spin_lock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_attr_show()
314 total = snprintf(buf, remain, "%u\n", ent->fs_fcheck->fc_max); in ocfs2_filecheck_attr_show()
315 spin_unlock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_attr_show()
322 spin_lock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_attr_show()
323 list_for_each_entry(p, &ent->fs_fcheck->fc_head, fe_list) { in ocfs2_filecheck_attr_show()
338 spin_unlock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_attr_show()
350 list_for_each_entry(p, &ent->fs_fcheck->fc_head, fe_list) { in ocfs2_filecheck_is_dup_entry()
365 list_for_each_entry(p, &ent->fs_fcheck->fc_head, fe_list) { in ocfs2_filecheck_erase_entry()
369 ent->fs_fcheck->fc_size--; in ocfs2_filecheck_erase_entry()
370 ent->fs_fcheck->fc_done--; in ocfs2_filecheck_erase_entry()
399 spin_lock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_done_entry()
401 ent->fs_fcheck->fc_done++; in ocfs2_filecheck_done_entry()
402 spin_unlock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_done_entry()
473 spin_lock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_attr_store()
477 } else if ((ent->fs_fcheck->fc_size >= ent->fs_fcheck->fc_max) && in ocfs2_filecheck_attr_store()
478 (ent->fs_fcheck->fc_done == 0)) { in ocfs2_filecheck_attr_store()
482 ent->fs_fcheck->fc_max); in ocfs2_filecheck_attr_store()
486 if ((ent->fs_fcheck->fc_size >= ent->fs_fcheck->fc_max) && in ocfs2_filecheck_attr_store()
487 (ent->fs_fcheck->fc_done > 0)) { in ocfs2_filecheck_attr_store()
499 list_add_tail(&entry->fe_list, &ent->fs_fcheck->fc_head); in ocfs2_filecheck_attr_store()
500 ent->fs_fcheck->fc_size++; in ocfs2_filecheck_attr_store()
502 spin_unlock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_attr_store()