• Home
  • Raw
  • Download

Lines Matching refs:entry

59 	struct fsync_inode_entry *entry;  in get_fsync_inode()  local
61 list_for_each_entry(entry, head, list) in get_fsync_inode()
62 if (entry->inode->i_ino == ino) in get_fsync_inode()
63 return entry; in get_fsync_inode()
72 struct fsync_inode_entry *entry; in add_fsync_inode() local
89 entry = f2fs_kmem_cache_alloc(fsync_entry_slab, GFP_F2FS_ZERO); in add_fsync_inode()
90 entry->inode = inode; in add_fsync_inode()
91 list_add_tail(&entry->list, head); in add_fsync_inode()
93 return entry; in add_fsync_inode()
99 static void del_fsync_inode(struct fsync_inode_entry *entry, int drop) in del_fsync_inode() argument
103 f2fs_inode_synced(entry->inode); in del_fsync_inode()
105 iput(entry->inode); in del_fsync_inode()
106 list_del(&entry->list); in del_fsync_inode()
107 kmem_cache_free(fsync_entry_slab, entry); in del_fsync_inode()
119 struct fsync_inode_entry *entry; in recover_dentry() local
123 entry = get_fsync_inode(dir_list, pino); in recover_dentry()
124 if (!entry) { in recover_dentry()
125 entry = add_fsync_inode(F2FS_I_SB(inode), dir_list, in recover_dentry()
127 if (IS_ERR(entry)) { in recover_dentry()
128 dir = ERR_CAST(entry); in recover_dentry()
129 err = PTR_ERR(entry); in recover_dentry()
134 dir = entry->inode; in recover_dentry()
315 struct fsync_inode_entry *entry; in find_fsync_dnodes() local
334 entry = get_fsync_inode(head, ino_of_node(page)); in find_fsync_dnodes()
335 if (!entry) { in find_fsync_dnodes()
352 entry = add_fsync_inode(sbi, head, ino_of_node(page), in find_fsync_dnodes()
354 if (IS_ERR(entry)) { in find_fsync_dnodes()
355 err = PTR_ERR(entry); in find_fsync_dnodes()
364 entry->blkaddr = blkaddr; in find_fsync_dnodes()
367 entry->last_dentry = blkaddr; in find_fsync_dnodes()
391 struct fsync_inode_entry *entry, *tmp; in destroy_fsync_dnodes() local
393 list_for_each_entry_safe(entry, tmp, head, list) in destroy_fsync_dnodes()
394 del_fsync_inode(entry, drop); in destroy_fsync_dnodes()
660 struct fsync_inode_entry *entry; in recover_data() local
678 entry = get_fsync_inode(inode_list, ino_of_node(page)); in recover_data()
679 if (!entry) in recover_data()
687 err = recover_inode(entry->inode, page); in recover_data()
693 if (entry->last_dentry == blkaddr) { in recover_data()
694 err = recover_dentry(entry->inode, page, dir_list); in recover_data()
700 err = do_recover_data(sbi, entry->inode, page); in recover_data()
706 if (entry->blkaddr == blkaddr) in recover_data()
707 list_move_tail(&entry->list, tmp_inode_list); in recover_data()