Lines Matching refs:ent

208 ocfs2_filecheck_erase_entries(struct ocfs2_filecheck_sysfs_entry *ent,
211 ocfs2_filecheck_adjust_max(struct ocfs2_filecheck_sysfs_entry *ent,
219 spin_lock(&ent->fs_fcheck->fc_lock);
220 if (len < (ent->fs_fcheck->fc_size - ent->fs_fcheck->fc_done)) {
224 len, ent->fs_fcheck->fc_size - ent->fs_fcheck->fc_done);
227 if (len < ent->fs_fcheck->fc_size)
228 BUG_ON(!ocfs2_filecheck_erase_entries(ent,
229 ent->fs_fcheck->fc_size - len));
231 ent->fs_fcheck->fc_max = len;
234 spin_unlock(&ent->fs_fcheck->fc_lock);
306 struct ocfs2_filecheck_sysfs_entry *ent = container_of(kobj,
313 spin_lock(&ent->fs_fcheck->fc_lock);
314 total = snprintf(buf, remain, "%u\n", ent->fs_fcheck->fc_max);
315 spin_unlock(&ent->fs_fcheck->fc_lock);
322 spin_lock(&ent->fs_fcheck->fc_lock);
323 list_for_each_entry(p, &ent->fs_fcheck->fc_head, fe_list) {
338 spin_unlock(&ent->fs_fcheck->fc_lock);
345 ocfs2_filecheck_is_dup_entry(struct ocfs2_filecheck_sysfs_entry *ent,
350 list_for_each_entry(p, &ent->fs_fcheck->fc_head, fe_list) {
361 ocfs2_filecheck_erase_entry(struct ocfs2_filecheck_sysfs_entry *ent)
365 list_for_each_entry(p, &ent->fs_fcheck->fc_head, fe_list) {
369 ent->fs_fcheck->fc_size--;
370 ent->fs_fcheck->fc_done--;
379 ocfs2_filecheck_erase_entries(struct ocfs2_filecheck_sysfs_entry *ent,
386 if (ocfs2_filecheck_erase_entry(ent))
396 ocfs2_filecheck_done_entry(struct ocfs2_filecheck_sysfs_entry *ent,
399 spin_lock(&ent->fs_fcheck->fc_lock);
401 ent->fs_fcheck->fc_done++;
402 spin_unlock(&ent->fs_fcheck->fc_lock);
428 ocfs2_filecheck_handle_entry(struct ocfs2_filecheck_sysfs_entry *ent,
431 struct ocfs2_super *osb = container_of(ent, struct ocfs2_super,
443 ocfs2_filecheck_done_entry(ent, entry);
453 struct ocfs2_filecheck_sysfs_entry *ent = container_of(kobj,
463 ret = ocfs2_filecheck_adjust_max(ent, args.fa_len);
473 spin_lock(&ent->fs_fcheck->fc_lock);
474 if (ocfs2_filecheck_is_dup_entry(ent, args.fa_ino)) {
477 } else if ((ent->fs_fcheck->fc_size >= ent->fs_fcheck->fc_max) &&
478 (ent->fs_fcheck->fc_done == 0)) {
482 ent->fs_fcheck->fc_max);
486 if ((ent->fs_fcheck->fc_size >= ent->fs_fcheck->fc_max) &&
487 (ent->fs_fcheck->fc_done > 0)) {
492 BUG_ON(!ocfs2_filecheck_erase_entry(ent));
499 list_add_tail(&entry->fe_list, &ent->fs_fcheck->fc_head);
500 ent->fs_fcheck->fc_size++;
502 spin_unlock(&ent->fs_fcheck->fc_lock);
505 ocfs2_filecheck_handle_entry(ent, entry);