Lines Matching refs:ent

209 ocfs2_filecheck_erase_entries(struct ocfs2_filecheck_sysfs_entry *ent,
212 ocfs2_filecheck_adjust_max(struct ocfs2_filecheck_sysfs_entry *ent,
220 spin_lock(&ent->fs_fcheck->fc_lock);
221 if (len < (ent->fs_fcheck->fc_size - ent->fs_fcheck->fc_done)) {
225 len, ent->fs_fcheck->fc_size - ent->fs_fcheck->fc_done);
228 if (len < ent->fs_fcheck->fc_size)
229 BUG_ON(!ocfs2_filecheck_erase_entries(ent,
230 ent->fs_fcheck->fc_size - len));
232 ent->fs_fcheck->fc_max = len;
235 spin_unlock(&ent->fs_fcheck->fc_lock);
307 struct ocfs2_filecheck_sysfs_entry *ent = container_of(kobj,
314 spin_lock(&ent->fs_fcheck->fc_lock);
315 total = snprintf(buf, remain, "%u\n", ent->fs_fcheck->fc_max);
316 spin_unlock(&ent->fs_fcheck->fc_lock);
323 spin_lock(&ent->fs_fcheck->fc_lock);
324 list_for_each_entry(p, &ent->fs_fcheck->fc_head, fe_list) {
339 spin_unlock(&ent->fs_fcheck->fc_lock);
346 ocfs2_filecheck_is_dup_entry(struct ocfs2_filecheck_sysfs_entry *ent,
351 list_for_each_entry(p, &ent->fs_fcheck->fc_head, fe_list) {
362 ocfs2_filecheck_erase_entry(struct ocfs2_filecheck_sysfs_entry *ent)
366 list_for_each_entry(p, &ent->fs_fcheck->fc_head, fe_list) {
370 ent->fs_fcheck->fc_size--;
371 ent->fs_fcheck->fc_done--;
380 ocfs2_filecheck_erase_entries(struct ocfs2_filecheck_sysfs_entry *ent,
387 if (ocfs2_filecheck_erase_entry(ent))
397 ocfs2_filecheck_done_entry(struct ocfs2_filecheck_sysfs_entry *ent,
400 spin_lock(&ent->fs_fcheck->fc_lock);
402 ent->fs_fcheck->fc_done++;
403 spin_unlock(&ent->fs_fcheck->fc_lock);
429 ocfs2_filecheck_handle_entry(struct ocfs2_filecheck_sysfs_entry *ent,
432 struct ocfs2_super *osb = container_of(ent, struct ocfs2_super,
444 ocfs2_filecheck_done_entry(ent, entry);
454 struct ocfs2_filecheck_sysfs_entry *ent = container_of(kobj,
464 ret = ocfs2_filecheck_adjust_max(ent, args.fa_len);
474 spin_lock(&ent->fs_fcheck->fc_lock);
475 if (ocfs2_filecheck_is_dup_entry(ent, args.fa_ino)) {
478 } else if ((ent->fs_fcheck->fc_size >= ent->fs_fcheck->fc_max) &&
479 (ent->fs_fcheck->fc_done == 0)) {
483 ent->fs_fcheck->fc_max);
487 if ((ent->fs_fcheck->fc_size >= ent->fs_fcheck->fc_max) &&
488 (ent->fs_fcheck->fc_done > 0)) {
493 BUG_ON(!ocfs2_filecheck_erase_entry(ent));
500 list_add_tail(&entry->fe_list, &ent->fs_fcheck->fc_head);
501 ent->fs_fcheck->fc_size++;
503 spin_unlock(&ent->fs_fcheck->fc_lock);
506 ocfs2_filecheck_handle_entry(ent, entry);