Lines Matching refs:p_dir
202 struct exfat_hint_femp *hint_femp, struct exfat_chain *p_dir, in exfat_search_empty_slot() argument
224 exfat_chain_dup(&clu, p_dir); in exfat_search_empty_slot()
260 p_dir->dir, clu.dir); in exfat_search_empty_slot()
305 struct exfat_chain *p_dir, int num_entries) in exfat_find_empty_entry() argument
325 while ((dentry = exfat_search_empty_slot(sb, &hint_femp, p_dir, in exfat_find_empty_entry()
334 if (exfat_find_last_cluster(sb, p_dir, &last_clu)) in exfat_find_empty_entry()
340 exfat_chain_set(&clu, last_clu + 1, 0, p_dir->flags); in exfat_find_empty_entry()
351 if (clu.flags != p_dir->flags) { in exfat_find_empty_entry()
355 exfat_chain_cont_cluster(sb, p_dir->dir, p_dir->size); in exfat_find_empty_entry()
356 p_dir->flags = ALLOC_FAT_CHAIN; in exfat_find_empty_entry()
368 hint_femp.eidx = EXFAT_B_TO_DEN_IDX(p_dir->size, sbi); in exfat_find_empty_entry()
374 p_dir->size++; in exfat_find_empty_entry()
375 size = EXFAT_CLU_TO_B(p_dir->size, sbi); in exfat_find_empty_entry()
378 if (p_dir->dir != sbi->root_dir) { in exfat_find_empty_entry()
388 ep->dentry.stream.flags = p_dir->flags; in exfat_find_empty_entry()
400 EXFAT_I(inode)->flags = p_dir->flags; in exfat_find_empty_entry()
412 struct exfat_chain *p_dir, struct exfat_uni_name *p_uniname, in __exfat_resolve_path() argument
446 exfat_chain_set(p_dir, ei->start_clu, in __exfat_resolve_path()
472 struct exfat_chain *p_dir, unsigned int type, in exfat_add_entry() argument
483 ret = exfat_resolve_path(inode, path, p_dir, &uniname); in exfat_add_entry()
494 dentry = exfat_find_empty_entry(inode, p_dir, num_entries); in exfat_add_entry()
512 ret = exfat_init_dir_entry(inode, p_dir, dentry, type, in exfat_add_entry()
517 ret = exfat_init_ext_entry(inode, p_dir, dentry, num_entries, &uniname); in exfat_add_entry()
521 info->dir = *p_dir; in exfat_add_entry()
875 struct exfat_chain *p_dir) in exfat_check_dir_empty() argument
886 exfat_chain_dup(&clu, p_dir); in exfat_check_dir_empty()
995 static int exfat_rename_file(struct inode *inode, struct exfat_chain *p_dir, in exfat_rename_file() argument
1006 epold = exfat_get_dentry(sb, p_dir, oldentry, &old_bh, §or_old); in exfat_rename_file()
1010 num_old_entries = exfat_count_ext_entries(sb, p_dir, oldentry, epold); in exfat_rename_file()
1023 exfat_find_empty_entry(inode, p_dir, num_new_entries); in exfat_rename_file()
1027 epnew = exfat_get_dentry(sb, p_dir, newentry, &new_bh, in exfat_rename_file()
1041 epold = exfat_get_dentry(sb, p_dir, oldentry + 1, &old_bh, in exfat_rename_file()
1045 epnew = exfat_get_dentry(sb, p_dir, newentry + 1, &new_bh, in exfat_rename_file()
1057 ret = exfat_init_ext_entry(inode, p_dir, newentry, in exfat_rename_file()
1062 exfat_remove_entries(inode, p_dir, oldentry, 0, in exfat_rename_file()
1072 ret = exfat_init_ext_entry(inode, p_dir, oldentry, in exfat_rename_file()
1077 exfat_remove_entries(inode, p_dir, oldentry, num_new_entries, in exfat_rename_file()
1184 struct exfat_chain *p_dir = NULL; in __exfat_rename() local
1230 p_dir = &(new_ei->dir); in __exfat_rename()
1232 ep = exfat_get_dentry(sb, p_dir, new_entry, &new_bh, NULL); in __exfat_rename()
1272 ep = exfat_get_dentry(sb, p_dir, new_entry, &new_bh, NULL); in __exfat_rename()
1278 num_entries = exfat_count_ext_entries(sb, p_dir, new_entry, ep); in __exfat_rename()
1285 if (exfat_remove_entries(new_inode, p_dir, new_entry, 0, in __exfat_rename()