Lines Matching refs:fs_fcheck

161 	spin_lock(&entry->fs_fcheck->fc_lock);  in ocfs2_filecheck_sysfs_free()
162 while (!list_empty(&entry->fs_fcheck->fc_head)) { in ocfs2_filecheck_sysfs_free()
163 p = list_first_entry(&entry->fs_fcheck->fc_head, in ocfs2_filecheck_sysfs_free()
169 spin_unlock(&entry->fs_fcheck->fc_lock); in ocfs2_filecheck_sysfs_free()
171 kfree(entry->fs_fcheck); in ocfs2_filecheck_sysfs_free()
172 entry->fs_fcheck = NULL; in ocfs2_filecheck_sysfs_free()
201 entry->fs_fcheck = fcheck; in ocfs2_filecheck_create_sysfs()
207 if (!osb->osb_fc_ent.fs_fcheck) in ocfs2_filecheck_remove_sysfs()
228 spin_lock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_adjust_max()
229 if (len < (ent->fs_fcheck->fc_size - ent->fs_fcheck->fc_done)) { in ocfs2_filecheck_adjust_max()
233 len, ent->fs_fcheck->fc_size - ent->fs_fcheck->fc_done); in ocfs2_filecheck_adjust_max()
236 if (len < ent->fs_fcheck->fc_size) in ocfs2_filecheck_adjust_max()
238 ent->fs_fcheck->fc_size - len)); in ocfs2_filecheck_adjust_max()
240 ent->fs_fcheck->fc_max = len; in ocfs2_filecheck_adjust_max()
243 spin_unlock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_adjust_max()
322 spin_lock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_attr_show()
323 total = snprintf(buf, remain, "%u\n", ent->fs_fcheck->fc_max); in ocfs2_filecheck_attr_show()
324 spin_unlock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_attr_show()
331 spin_lock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_attr_show()
332 list_for_each_entry(p, &ent->fs_fcheck->fc_head, fe_list) { in ocfs2_filecheck_attr_show()
347 spin_unlock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_attr_show()
359 list_for_each_entry(p, &ent->fs_fcheck->fc_head, fe_list) { in ocfs2_filecheck_is_dup_entry()
374 list_for_each_entry(p, &ent->fs_fcheck->fc_head, fe_list) { in ocfs2_filecheck_erase_entry()
378 ent->fs_fcheck->fc_size--; in ocfs2_filecheck_erase_entry()
379 ent->fs_fcheck->fc_done--; in ocfs2_filecheck_erase_entry()
408 spin_lock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_done_entry()
410 ent->fs_fcheck->fc_done++; in ocfs2_filecheck_done_entry()
411 spin_unlock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_done_entry()
482 spin_lock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_attr_store()
486 } else 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()
491 ent->fs_fcheck->fc_max); in ocfs2_filecheck_attr_store()
495 if ((ent->fs_fcheck->fc_size >= ent->fs_fcheck->fc_max) && in ocfs2_filecheck_attr_store()
496 (ent->fs_fcheck->fc_done > 0)) { in ocfs2_filecheck_attr_store()
508 list_add_tail(&entry->fe_list, &ent->fs_fcheck->fc_head); in ocfs2_filecheck_attr_store()
509 ent->fs_fcheck->fc_size++; in ocfs2_filecheck_attr_store()
511 spin_unlock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_attr_store()