Lines Matching refs:entry

102 	struct ocfs2_filecheck_sysfs_entry *entry = container_of(kobj,
105 complete(&entry->fs_kobj_unregister);
149 ocfs2_filecheck_sysfs_free(struct ocfs2_filecheck_sysfs_entry *entry)
153 spin_lock(&entry->fs_fcheck->fc_lock);
154 while (!list_empty(&entry->fs_fcheck->fc_head)) {
155 p = list_first_entry(&entry->fs_fcheck->fc_head,
158 BUG_ON(!p->fe_done); /* To free a undone file check entry */
161 spin_unlock(&entry->fs_fcheck->fc_lock);
163 kfree(entry->fs_fcheck);
164 entry->fs_fcheck = NULL;
171 struct ocfs2_filecheck_sysfs_entry *entry = &osb->osb_fc_ent;
183 entry->fs_kobj.kset = osb->osb_dev_kset;
184 init_completion(&entry->fs_kobj_unregister);
185 ret = kobject_init_and_add(&entry->fs_kobj, &ocfs2_ktype_filecheck,
188 kobject_put(&entry->fs_kobj);
193 entry->fs_fcheck = fcheck;
223 "Cannot set online file check maximum entry number "
398 struct ocfs2_filecheck_entry *entry)
401 entry->fe_done = 1;
430 struct ocfs2_filecheck_entry *entry)
435 if (entry->fe_type == OCFS2_FILECHECK_TYPE_CHK)
436 entry->fe_status = ocfs2_filecheck_handle(osb,
437 entry->fe_ino, OCFS2_FI_FLAG_FILECHECK_CHK);
438 else if (entry->fe_type == OCFS2_FILECHECK_TYPE_FIX)
439 entry->fe_status = ocfs2_filecheck_handle(osb,
440 entry->fe_ino, OCFS2_FI_FLAG_FILECHECK_FIX);
442 entry->fe_status = OCFS2_FILECHECK_ERR_UNSUPPORTED;
444 ocfs2_filecheck_done_entry(ent, entry);
453 struct ocfs2_filecheck_entry *entry;
468 entry = kmalloc(sizeof(struct ocfs2_filecheck_entry), GFP_NOFS);
469 if (!entry) {
477 kfree(entry);
485 kfree(entry);
489 /* Delete the oldest entry which was done,
490 * make sure the entry size in list does
496 entry->fe_ino = args.fa_ino;
497 entry->fe_type = args.fa_type;
498 entry->fe_done = 0;
499 entry->fe_status = OCFS2_FILECHECK_ERR_INPROGRESS;
500 list_add_tail(&entry->fe_list, &ent->fs_fcheck->fc_head);
506 ocfs2_filecheck_handle_entry(ent, entry);