Lines Matching refs:fname
287 static struct dx_frame *dx_probe(struct ext4_filename *fname,
308 struct ext4_filename *fname,
310 static int ext4_dx_add_entry(handle_t *handle, struct ext4_filename *fname,
775 dx_probe(struct ext4_filename *fname, struct inode *dir, in dx_probe() argument
814 if (fname) in dx_probe()
815 hinfo = &fname->hinfo; in dx_probe()
821 if (fname && fname_name(fname) && in dx_probe()
823 ext4fs_dirhash(dir, fname_name(fname), fname_len(fname), hinfo); in dx_probe()
1266 struct ext4_filename *fname, in search_dirblock() argument
1271 fname, offset, res_dir); in search_dirblock()
1456 const struct ext4_filename *fname, in ext4_match() argument
1464 f.usr_fname = fname->usr_fname; in ext4_match()
1465 f.disk_name = fname->disk_name; in ext4_match()
1467 f.crypto_buf = fname->crypto_buf; in ext4_match()
1473 if (fname->cf_name.name) { in ext4_match()
1474 struct qstr cf = {.name = fname->cf_name.name, in ext4_match()
1475 .len = fname->cf_name.len}; in ext4_match()
1477 if (fname->hinfo.hash != EXT4_DIRENT_HASH(de) || in ext4_match()
1478 fname->hinfo.minor_hash != in ext4_match()
1487 return !ext4_ci_compare(parent, fname->usr_fname, de->name, in ext4_match()
1499 struct inode *dir, struct ext4_filename *fname, in ext4_search_dir() argument
1512 ext4_match(dir, fname, de)) { in ext4_search_dir()
1560 struct ext4_filename *fname, in __ext4_find_entry() argument
1568 const u8 *name = fname->usr_fname->name; in __ext4_find_entry()
1578 namelen = fname->usr_fname->len; in __ext4_find_entry()
1584 ret = ext4_find_inline_entry(dir, fname, res_dir, in __ext4_find_entry()
1603 ret = ext4_dx_find_entry(dir, fname, res_dir); in __ext4_find_entry()
1667 i = search_dirblock(bh, dir, fname, in __ext4_find_entry()
1707 struct ext4_filename fname; in ext4_find_entry() local
1710 err = ext4_fname_setup_filename(dir, d_name, 1, &fname); in ext4_find_entry()
1716 bh = __ext4_find_entry(dir, &fname, res_dir, inlined); in ext4_find_entry()
1718 ext4_fname_free_filename(&fname); in ext4_find_entry()
1727 struct ext4_filename fname; in ext4_lookup_entry() local
1730 err = ext4_fname_prepare_lookup(dir, dentry, &fname); in ext4_lookup_entry()
1737 bh = __ext4_find_entry(dir, &fname, res_dir, NULL); in ext4_lookup_entry()
1739 ext4_fname_free_filename(&fname); in ext4_lookup_entry()
1744 struct ext4_filename *fname, in ext4_dx_find_entry() argument
1756 frame = dx_probe(fname, dir, NULL, frames); in ext4_dx_find_entry()
1765 retval = search_dirblock(bh, dir, fname, in ext4_dx_find_entry()
1777 retval = ext4_htree_next_block(dir, fname->hinfo.hash, frame, in ext4_dx_find_entry()
1790 dxtrace(printk(KERN_DEBUG "%s not found\n", fname->usr_fname->name)); in ext4_dx_find_entry()
2057 struct ext4_filename *fname, in ext4_find_dest_de() argument
2061 unsigned short reclen = ext4_dir_rec_len(fname_len(fname), dir); in ext4_find_dest_de()
2072 if (ext4_match(dir, fname, de)) in ext4_find_dest_de()
2092 struct ext4_filename *fname) in ext4_insert_dentry() argument
2109 de->name_len = fname_len(fname); in ext4_insert_dentry()
2110 memcpy(de->name, fname_name(fname), fname_len(fname)); in ext4_insert_dentry()
2112 struct dx_hash_info *hinfo = &fname->hinfo; in ext4_insert_dentry()
2128 static int add_dirent_to_buf(handle_t *handle, struct ext4_filename *fname, in add_dirent_to_buf() argument
2142 blocksize - csum_size, fname, &de); in add_dirent_to_buf()
2154 ext4_insert_dentry(dir, inode, de, blocksize, fname); in add_dirent_to_buf()
2182 static int make_indexed_dir(handle_t *handle, struct ext4_filename *fname, in make_indexed_dir() argument
2270 fname->hinfo.hash_version = root->info.hash_version; in make_indexed_dir()
2271 if (fname->hinfo.hash_version <= DX_HASH_TEA) in make_indexed_dir()
2272 fname->hinfo.hash_version += EXT4_SB(dir->i_sb)->s_hash_unsigned; in make_indexed_dir()
2273 fname->hinfo.seed = EXT4_SB(dir->i_sb)->s_hash_seed; in make_indexed_dir()
2277 ext4fs_dirhash(dir, fname_name(fname), in make_indexed_dir()
2278 fname_len(fname), &fname->hinfo); in make_indexed_dir()
2293 de = do_split(handle,dir, &bh2, frame, &fname->hinfo); in make_indexed_dir()
2299 retval = add_dirent_to_buf(handle, fname, dir, inode, de, bh2); in make_indexed_dir()
2330 struct ext4_filename fname; in ext4_add_entry() local
2354 retval = ext4_fname_setup_filename(dir, &dentry->d_name, 0, &fname); in ext4_add_entry()
2359 retval = ext4_try_add_inline_entry(handle, &fname, dir, inode); in ext4_add_entry()
2369 retval = ext4_dx_add_entry(handle, &fname, dir, inode); in ext4_add_entry()
2396 retval = add_dirent_to_buf(handle, &fname, dir, inode, in ext4_add_entry()
2403 retval = make_indexed_dir(handle, &fname, dir, in ext4_add_entry()
2424 retval = add_dirent_to_buf(handle, &fname, dir, inode, de, bh); in ext4_add_entry()
2426 ext4_fname_free_filename(&fname); in ext4_add_entry()
2436 static int ext4_dx_add_entry(handle_t *handle, struct ext4_filename *fname, in ext4_dx_add_entry() argument
2449 frame = dx_probe(fname, dir, NULL, frames); in ext4_dx_add_entry()
2466 err = add_dirent_to_buf(handle, fname, dir, inode, NULL, bh); in ext4_dx_add_entry()
2585 de = do_split(handle, dir, &bh, frame, &fname->hinfo); in ext4_dx_add_entry()
2590 err = add_dirent_to_buf(handle, fname, dir, inode, de, bh); in ext4_dx_add_entry()