Lines Matching refs:fs_fcheck
153 spin_lock(&entry->fs_fcheck->fc_lock); in ocfs2_filecheck_sysfs_free()
154 while (!list_empty(&entry->fs_fcheck->fc_head)) { in ocfs2_filecheck_sysfs_free()
155 p = list_first_entry(&entry->fs_fcheck->fc_head, in ocfs2_filecheck_sysfs_free()
161 spin_unlock(&entry->fs_fcheck->fc_lock); in ocfs2_filecheck_sysfs_free()
163 kfree(entry->fs_fcheck); in ocfs2_filecheck_sysfs_free()
164 entry->fs_fcheck = NULL; in ocfs2_filecheck_sysfs_free()
193 entry->fs_fcheck = fcheck; in ocfs2_filecheck_create_sysfs()
199 if (!osb->osb_fc_ent.fs_fcheck) in ocfs2_filecheck_remove_sysfs()
220 spin_lock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_adjust_max()
221 if (len < (ent->fs_fcheck->fc_size - ent->fs_fcheck->fc_done)) { in ocfs2_filecheck_adjust_max()
225 len, ent->fs_fcheck->fc_size - ent->fs_fcheck->fc_done); in ocfs2_filecheck_adjust_max()
228 if (len < ent->fs_fcheck->fc_size) in ocfs2_filecheck_adjust_max()
230 ent->fs_fcheck->fc_size - len)); in ocfs2_filecheck_adjust_max()
232 ent->fs_fcheck->fc_max = len; in ocfs2_filecheck_adjust_max()
235 spin_unlock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_adjust_max()
314 spin_lock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_attr_show()
315 total = snprintf(buf, remain, "%u\n", ent->fs_fcheck->fc_max); in ocfs2_filecheck_attr_show()
316 spin_unlock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_attr_show()
323 spin_lock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_attr_show()
324 list_for_each_entry(p, &ent->fs_fcheck->fc_head, fe_list) { in ocfs2_filecheck_attr_show()
343 spin_unlock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_attr_show()
355 list_for_each_entry(p, &ent->fs_fcheck->fc_head, fe_list) { in ocfs2_filecheck_is_dup_entry()
370 list_for_each_entry(p, &ent->fs_fcheck->fc_head, fe_list) { in ocfs2_filecheck_erase_entry()
374 ent->fs_fcheck->fc_size--; in ocfs2_filecheck_erase_entry()
375 ent->fs_fcheck->fc_done--; in ocfs2_filecheck_erase_entry()
404 spin_lock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_done_entry()
406 ent->fs_fcheck->fc_done++; in ocfs2_filecheck_done_entry()
407 spin_unlock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_done_entry()
478 spin_lock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_attr_store()
482 } else if ((ent->fs_fcheck->fc_size >= ent->fs_fcheck->fc_max) && in ocfs2_filecheck_attr_store()
483 (ent->fs_fcheck->fc_done == 0)) { in ocfs2_filecheck_attr_store()
487 ent->fs_fcheck->fc_max); in ocfs2_filecheck_attr_store()
491 if ((ent->fs_fcheck->fc_size >= ent->fs_fcheck->fc_max) && in ocfs2_filecheck_attr_store()
492 (ent->fs_fcheck->fc_done > 0)) { in ocfs2_filecheck_attr_store()
504 list_add_tail(&entry->fe_list, &ent->fs_fcheck->fc_head); in ocfs2_filecheck_attr_store()
505 ent->fs_fcheck->fc_size++; in ocfs2_filecheck_attr_store()
507 spin_unlock(&ent->fs_fcheck->fc_lock); in ocfs2_filecheck_attr_store()