Home
last modified time | relevance | path

Searched refs:clu (Results 1 – 9 of 9) sorted by relevance

/fs/exfat/
Ddir.c71 struct exfat_chain dir, clu; in exfat_readdir() local
96 exfat_chain_dup(&clu, &dir); in exfat_readdir()
98 if (clu.flags == ALLOC_NO_FAT_CHAIN) { in exfat_readdir()
99 clu.dir += clu_offset; in exfat_readdir()
100 clu.size -= clu_offset; in exfat_readdir()
106 clu.dir = ei->hint_bmap.clu; in exfat_readdir()
109 while (clu_offset > 0 && clu.dir != EXFAT_EOF_CLUSTER) { in exfat_readdir()
110 if (exfat_get_next_cluster(sb, &(clu.dir))) in exfat_readdir()
117 while (clu.dir != EXFAT_EOF_CLUSTER && dentry < max_dentries) { in exfat_readdir()
121 ep = exfat_get_dentry(sb, &clu, i, &bh, &sector); in exfat_readdir()
[all …]
Dballoc.c99 struct exfat_chain clu; in exfat_load_bitmap() local
102 exfat_chain_set(&clu, sbi->root_dir, 0, ALLOC_FAT_CHAIN); in exfat_load_bitmap()
103 while (clu.dir != EXFAT_EOF_CLUSTER) { in exfat_load_bitmap()
108 ep = exfat_get_dentry(sb, &clu, i, &bh, NULL); in exfat_load_bitmap()
127 if (exfat_get_next_cluster(sb, &clu.dir)) in exfat_load_bitmap()
144 int exfat_set_bitmap(struct inode *inode, unsigned int clu, bool sync) in exfat_set_bitmap() argument
151 if (!is_valid_cluster(sbi, clu)) in exfat_set_bitmap()
154 ent_idx = CLUSTER_TO_BITMAP_ENT(clu); in exfat_set_bitmap()
163 void exfat_clear_bitmap(struct inode *inode, unsigned int clu) in exfat_clear_bitmap() argument
171 if (!is_valid_cluster(sbi, clu)) in exfat_clear_bitmap()
[all …]
Dfatent.c150 unsigned int clu; in exfat_free_cluster() local
170 clu = p_chain->dir; in exfat_free_cluster()
174 exfat_clear_bitmap(inode, clu); in exfat_free_cluster()
175 clu++; in exfat_free_cluster()
181 exfat_clear_bitmap(inode, clu); in exfat_free_cluster()
183 if (exfat_get_next_cluster(sb, &clu)) in exfat_free_cluster()
187 } while (clu != EXFAT_EOF_CLUSTER); in exfat_free_cluster()
198 unsigned int clu, next; in exfat_find_last_cluster() local
209 clu = next; in exfat_find_last_cluster()
210 if (exfat_ent_get(sb, clu, &next)) in exfat_find_last_cluster()
[all …]
Dnamei.c208 struct exfat_chain clu; in exfat_search_empty_slot() local
222 exfat_chain_dup(&clu, &hint_femp->cur); in exfat_search_empty_slot()
224 exfat_chain_dup(&clu, p_dir); in exfat_search_empty_slot()
228 while (clu.dir != EXFAT_EOF_CLUSTER) { in exfat_search_empty_slot()
232 ep = exfat_get_dentry(sb, &clu, i, &bh, NULL); in exfat_search_empty_slot()
244 clu.dir, clu.size, clu.flags); in exfat_search_empty_slot()
260 p_dir->dir, clu.dir); in exfat_search_empty_slot()
275 if (clu.flags == ALLOC_NO_FAT_CHAIN) { in exfat_search_empty_slot()
276 if (--clu.size > 0) in exfat_search_empty_slot()
277 clu.dir++; in exfat_search_empty_slot()
[all …]
Dinode.c106 unsigned int *clu, int create) in exfat_map_cluster() argument
125 *clu = EXFAT_EOF_CLUSTER; in exfat_map_cluster()
129 *clu = last_clu = ei->start_clu; in exfat_map_cluster()
132 if (clu_offset > 0 && *clu != EXFAT_EOF_CLUSTER) { in exfat_map_cluster()
136 *clu = EXFAT_EOF_CLUSTER; in exfat_map_cluster()
138 *clu += clu_offset; in exfat_map_cluster()
143 &fclus, clu, &last_clu, 1); in exfat_map_cluster()
154 WARN_ON(ei->hint_bmap.clu < 2); in exfat_map_cluster()
155 *clu = ei->hint_bmap.clu; in exfat_map_cluster()
158 while (clu_offset > 0 && *clu != EXFAT_EOF_CLUSTER) { in exfat_map_cluster()
[all …]
Dfile.c99 struct exfat_chain clu; in __exfat_truncate() local
114 exfat_chain_set(&clu, ei->start_clu, num_clusters_phys, ei->flags); in __exfat_truncate()
128 if (clu.flags == ALLOC_NO_FAT_CHAIN) { in __exfat_truncate()
129 clu.dir += num_clusters; in __exfat_truncate()
130 clu.size -= num_clusters; in __exfat_truncate()
133 last_clu = clu.dir; in __exfat_truncate()
134 if (exfat_get_next_cluster(sb, &(clu.dir))) in __exfat_truncate()
138 clu.size--; in __exfat_truncate()
209 ei->hint_bmap.clu = EXFAT_EOF_CLUSTER; in __exfat_truncate()
213 ei->hint_stat.clu = ei->start_clu; in __exfat_truncate()
[all …]
Dexfat_fs.h117 #define CLUSTER_TO_BITMAP_ENT(clu) ((clu) - EXFAT_RESERVED_CLUSTERS) argument
127 #define IGNORED_BITS_REMAINED(clu, clu_base) ((1 << ((clu) - (clu_base))) - 1) argument
161 unsigned int clu; member
412 int exfat_zeroed_cluster(struct inode *dir, unsigned int clu);
421 int exfat_set_bitmap(struct inode *inode, unsigned int clu, bool sync);
422 void exfat_clear_bitmap(struct inode *inode, unsigned int clu);
423 unsigned int exfat_find_free_bitmap(struct super_block *sb, unsigned int clu);
465 int exfat_alloc_new_dir(struct inode *inode, struct exfat_chain *clu);
Dnls.c754 struct exfat_chain clu; in exfat_create_upcase_table() local
759 clu.dir = sbi->root_dir; in exfat_create_upcase_table()
760 clu.flags = ALLOC_FAT_CHAIN; in exfat_create_upcase_table()
762 while (clu.dir != EXFAT_EOF_CLUSTER) { in exfat_create_upcase_table()
764 ep = exfat_get_dentry(sb, &clu, i, &bh, NULL); in exfat_create_upcase_table()
795 if (exfat_get_next_cluster(sb, &(clu.dir))) in exfat_create_upcase_table()
Dsuper.c346 ei->hint_stat.clu = sbi->root_dir; in exfat_read_root()