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()
200 entry->fs_fcheck = fcheck; in ocfs2_filecheck_create_sysfs()
206 if (!osb->osb_fc_ent.fs_fcheck) in ocfs2_filecheck_remove_sysfs()
227 spin_lock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_adjust_max()
228 if (len < (ent->fs_fcheck->fc_size - ent->fs_fcheck->fc_done)) { in ocfs2_filecheck_adjust_max()
232 len, ent->fs_fcheck->fc_size - ent->fs_fcheck->fc_done); in ocfs2_filecheck_adjust_max()
235 if (len < ent->fs_fcheck->fc_size) in ocfs2_filecheck_adjust_max()
237 ent->fs_fcheck->fc_size - len)); in ocfs2_filecheck_adjust_max()
239 ent->fs_fcheck->fc_max = len; in ocfs2_filecheck_adjust_max()
242 spin_unlock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_adjust_max()
321 spin_lock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_attr_show()
322 total = snprintf(buf, remain, "%u\n", ent->fs_fcheck->fc_max); in ocfs2_filecheck_attr_show()
323 spin_unlock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_attr_show()
330 spin_lock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_attr_show()
331 list_for_each_entry(p, &ent->fs_fcheck->fc_head, fe_list) { in ocfs2_filecheck_attr_show()
350 spin_unlock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_attr_show()
362 list_for_each_entry(p, &ent->fs_fcheck->fc_head, fe_list) { in ocfs2_filecheck_is_dup_entry()
377 list_for_each_entry(p, &ent->fs_fcheck->fc_head, fe_list) { in ocfs2_filecheck_erase_entry()
381 ent->fs_fcheck->fc_size--; in ocfs2_filecheck_erase_entry()
382 ent->fs_fcheck->fc_done--; in ocfs2_filecheck_erase_entry()
411 spin_lock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_done_entry()
413 ent->fs_fcheck->fc_done++; in ocfs2_filecheck_done_entry()
414 spin_unlock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_done_entry()
485 spin_lock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_attr_store()
489 } else if ((ent->fs_fcheck->fc_size >= ent->fs_fcheck->fc_max) && in ocfs2_filecheck_attr_store()
490 (ent->fs_fcheck->fc_done == 0)) { in ocfs2_filecheck_attr_store()
494 ent->fs_fcheck->fc_max); in ocfs2_filecheck_attr_store()
498 if ((ent->fs_fcheck->fc_size >= ent->fs_fcheck->fc_max) && in ocfs2_filecheck_attr_store()
499 (ent->fs_fcheck->fc_done > 0)) { in ocfs2_filecheck_attr_store()
511 list_add_tail(&entry->fe_list, &ent->fs_fcheck->fc_head); in ocfs2_filecheck_attr_store()
512 ent->fs_fcheck->fc_size++; in ocfs2_filecheck_attr_store()
514 spin_unlock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_attr_store()