Lines Matching refs:entry

101 	struct ocfs2_filecheck_sysfs_entry *entry = container_of(kobj,
104 complete(&entry->fs_kobj_unregister);
148 ocfs2_filecheck_sysfs_free(struct ocfs2_filecheck_sysfs_entry *entry)
152 spin_lock(&entry->fs_fcheck->fc_lock);
153 while (!list_empty(&entry->fs_fcheck->fc_head)) {
154 p = list_first_entry(&entry->fs_fcheck->fc_head,
157 BUG_ON(!p->fe_done); /* To free a undone file check entry */
160 spin_unlock(&entry->fs_fcheck->fc_lock);
162 kfree(entry->fs_fcheck);
163 entry->fs_fcheck = NULL;
170 struct ocfs2_filecheck_sysfs_entry *entry = &osb->osb_fc_ent;
182 entry->fs_kobj.kset = osb->osb_dev_kset;
183 init_completion(&entry->fs_kobj_unregister);
184 ret = kobject_init_and_add(&entry->fs_kobj, &ocfs2_ktype_filecheck,
187 kobject_put(&entry->fs_kobj);
192 entry->fs_fcheck = fcheck;
222 "Cannot set online file check maximum entry number "
397 struct ocfs2_filecheck_entry *entry)
400 entry->fe_done = 1;
429 struct ocfs2_filecheck_entry *entry)
434 if (entry->fe_type == OCFS2_FILECHECK_TYPE_CHK)
435 entry->fe_status = ocfs2_filecheck_handle(osb,
436 entry->fe_ino, OCFS2_FI_FLAG_FILECHECK_CHK);
437 else if (entry->fe_type == OCFS2_FILECHECK_TYPE_FIX)
438 entry->fe_status = ocfs2_filecheck_handle(osb,
439 entry->fe_ino, OCFS2_FI_FLAG_FILECHECK_FIX);
441 entry->fe_status = OCFS2_FILECHECK_ERR_UNSUPPORTED;
443 ocfs2_filecheck_done_entry(ent, entry);
452 struct ocfs2_filecheck_entry *entry;
467 entry = kmalloc(sizeof(struct ocfs2_filecheck_entry), GFP_NOFS);
468 if (!entry) {
476 kfree(entry);
484 kfree(entry);
488 /* Delete the oldest entry which was done,
489 * make sure the entry size in list does
495 entry->fe_ino = args.fa_ino;
496 entry->fe_type = args.fa_type;
497 entry->fe_done = 0;
498 entry->fe_status = OCFS2_FILECHECK_ERR_INPROGRESS;
499 list_add_tail(&entry->fe_list, &ent->fs_fcheck->fc_head);
505 ocfs2_filecheck_handle_entry(ent, entry);