Lines Matching refs:src_fd
439 struct hfs_find_data src_fd, dst_fd; in hfsplus_rename_cat() local
447 err = hfs_find_init(HFSPLUS_SB(sb)->cat_tree, &src_fd); in hfsplus_rename_cat()
450 dst_fd = src_fd; in hfsplus_rename_cat()
456 err = hfs_bmap_reserve(src_fd.tree, 4 * (int)src_fd.tree->depth - 1); in hfsplus_rename_cat()
461 err = hfsplus_cat_build_key(sb, src_fd.search_key, in hfsplus_rename_cat()
466 err = hfs_brec_find(&src_fd, hfs_find_rec_by_key); in hfsplus_rename_cat()
469 if (src_fd.entrylength > sizeof(entry) || src_fd.entrylength < 0) { in hfsplus_rename_cat()
474 hfs_bnode_read(src_fd.bnode, &entry, src_fd.entryoffset, in hfsplus_rename_cat()
475 src_fd.entrylength); in hfsplus_rename_cat()
491 err = hfs_brec_insert(&dst_fd, &entry, src_fd.entrylength); in hfsplus_rename_cat()
500 err = hfsplus_cat_build_key(sb, src_fd.search_key, in hfsplus_rename_cat()
505 err = hfs_brec_find(&src_fd, hfs_find_rec_by_key); in hfsplus_rename_cat()
508 err = hfs_brec_remove(&src_fd); in hfsplus_rename_cat()
517 hfsplus_cat_build_key_with_cnid(sb, src_fd.search_key, cnid); in hfsplus_rename_cat()
518 err = hfs_brec_find(&src_fd, hfs_find_rec_by_key); in hfsplus_rename_cat()
521 type = hfs_bnode_read_u16(src_fd.bnode, src_fd.entryoffset); in hfsplus_rename_cat()
522 err = hfs_brec_remove(&src_fd); in hfsplus_rename_cat()
547 hfs_find_exit(&src_fd); in hfsplus_rename_cat()