• Home
  • Raw
  • Download

Lines Matching refs:entry

102 	struct ocfs2_filecheck_sysfs_entry *entry = container_of(kobj,  in ocfs2_filecheck_release()  local
105 complete(&entry->fs_kobj_unregister); in ocfs2_filecheck_release()
149 ocfs2_filecheck_sysfs_free(struct ocfs2_filecheck_sysfs_entry *entry) in ocfs2_filecheck_sysfs_free() argument
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()
171 struct ocfs2_filecheck_sysfs_entry *entry = &osb->osb_fc_ent; in ocfs2_filecheck_create_sysfs() local
183 entry->fs_kobj.kset = osb->osb_dev_kset; in ocfs2_filecheck_create_sysfs()
184 init_completion(&entry->fs_kobj_unregister); in ocfs2_filecheck_create_sysfs()
185 ret = kobject_init_and_add(&entry->fs_kobj, &ocfs2_ktype_filecheck, in ocfs2_filecheck_create_sysfs()
188 kobject_put(&entry->fs_kobj); in ocfs2_filecheck_create_sysfs()
193 entry->fs_fcheck = fcheck; in ocfs2_filecheck_create_sysfs()
402 struct ocfs2_filecheck_entry *entry) in ocfs2_filecheck_done_entry() argument
405 entry->fe_done = 1; in ocfs2_filecheck_done_entry()
434 struct ocfs2_filecheck_entry *entry) in ocfs2_filecheck_handle_entry() argument
439 if (entry->fe_type == OCFS2_FILECHECK_TYPE_CHK) in ocfs2_filecheck_handle_entry()
440 entry->fe_status = ocfs2_filecheck_handle(osb, in ocfs2_filecheck_handle_entry()
441 entry->fe_ino, OCFS2_FI_FLAG_FILECHECK_CHK); in ocfs2_filecheck_handle_entry()
442 else if (entry->fe_type == OCFS2_FILECHECK_TYPE_FIX) in ocfs2_filecheck_handle_entry()
443 entry->fe_status = ocfs2_filecheck_handle(osb, in ocfs2_filecheck_handle_entry()
444 entry->fe_ino, OCFS2_FI_FLAG_FILECHECK_FIX); in ocfs2_filecheck_handle_entry()
446 entry->fe_status = OCFS2_FILECHECK_ERR_UNSUPPORTED; in ocfs2_filecheck_handle_entry()
448 ocfs2_filecheck_done_entry(ent, entry); in ocfs2_filecheck_handle_entry()
457 struct ocfs2_filecheck_entry *entry; in ocfs2_filecheck_attr_store() local
472 entry = kmalloc(sizeof(struct ocfs2_filecheck_entry), GFP_NOFS); in ocfs2_filecheck_attr_store()
473 if (!entry) { in ocfs2_filecheck_attr_store()
481 kfree(entry); in ocfs2_filecheck_attr_store()
489 kfree(entry); in ocfs2_filecheck_attr_store()
500 entry->fe_ino = args.fa_ino; in ocfs2_filecheck_attr_store()
501 entry->fe_type = args.fa_type; in ocfs2_filecheck_attr_store()
502 entry->fe_done = 0; in ocfs2_filecheck_attr_store()
503 entry->fe_status = OCFS2_FILECHECK_ERR_INPROGRESS; in ocfs2_filecheck_attr_store()
504 list_add_tail(&entry->fe_list, &ent->fs_fcheck->fc_head); in ocfs2_filecheck_attr_store()
510 ocfs2_filecheck_handle_entry(ent, entry); in ocfs2_filecheck_attr_store()