Lines Matching refs:fname
118 struct f2fs_filename *fname, in init_recovered_filename() argument
123 memset(fname, 0, sizeof(*fname)); in init_recovered_filename()
124 fname->disk_name.len = le32_to_cpu(raw_inode->i_namelen); in init_recovered_filename()
125 fname->disk_name.name = raw_inode->i_name; in init_recovered_filename()
127 if (WARN_ON(fname->disk_name.len > F2FS_NAME_LEN)) in init_recovered_filename()
131 usr_fname->name = fname->disk_name.name; in init_recovered_filename()
132 usr_fname->len = fname->disk_name.len; in init_recovered_filename()
133 fname->usr_fname = usr_fname; in init_recovered_filename()
142 if (fname->disk_name.len + sizeof(f2fs_hash_t) > F2FS_NAME_LEN) in init_recovered_filename()
144 fname->hash = get_unaligned((f2fs_hash_t *) in init_recovered_filename()
145 &raw_inode->i_name[fname->disk_name.len]); in init_recovered_filename()
147 err = f2fs_init_casefolded_name(dir, fname); in init_recovered_filename()
150 f2fs_hash_filename(dir, fname); in init_recovered_filename()
153 kmem_cache_free(f2fs_cf_name_slab, fname->cf_name.name); in init_recovered_filename()
154 fname->cf_name.name = NULL; in init_recovered_filename()
157 f2fs_hash_filename(dir, fname); in init_recovered_filename()
168 struct f2fs_filename fname; in recover_dentry() local
188 err = init_recovered_filename(dir, raw_inode, &fname, &usr_fname); in recover_dentry()
192 de = __f2fs_find_entry(dir, &fname, &page); in recover_dentry()
223 err = f2fs_add_dentry(dir, &fname, inode, in recover_dentry()