Lines Matching full:clu
26 struct exfat_chain clu; in exfat_cont_expand() local
39 exfat_chain_set(&clu, ei->start_clu, num_clusters, ei->flags); in exfat_cont_expand()
40 ret = exfat_find_last_cluster(sb, &clu, &last_clu); in exfat_cont_expand()
44 clu.dir = last_clu + 1; in exfat_cont_expand()
47 clu.dir = EXFAT_EOF_CLUSTER; in exfat_cont_expand()
50 clu.size = 0; in exfat_cont_expand()
51 clu.flags = ei->flags; in exfat_cont_expand()
54 &clu, inode_needs_sync(inode)); in exfat_cont_expand()
60 if (clu.flags != ei->flags) in exfat_cont_expand()
64 if (clu.flags == ALLOC_FAT_CHAIN) in exfat_cont_expand()
65 if (exfat_ent_set(sb, last_clu, clu.dir)) in exfat_cont_expand()
68 ei->start_clu = clu.dir; in exfat_cont_expand()
70 ei->flags = clu.flags; in exfat_cont_expand()
86 exfat_free_cluster(inode, &clu); in exfat_cont_expand()
148 struct exfat_chain clu; in __exfat_truncate() local
162 exfat_chain_set(&clu, ei->start_clu, num_clusters_phys, ei->flags); in __exfat_truncate()
176 if (clu.flags == ALLOC_NO_FAT_CHAIN) { in __exfat_truncate()
177 clu.dir += num_clusters; in __exfat_truncate()
178 clu.size -= num_clusters; in __exfat_truncate()
181 last_clu = clu.dir; in __exfat_truncate()
182 if (exfat_get_next_cluster(sb, &(clu.dir))) in __exfat_truncate()
186 clu.size--; in __exfat_truncate()
227 ei->hint_bmap.clu = EXFAT_EOF_CLUSTER; in __exfat_truncate()
231 ei->hint_stat.clu = ei->start_clu; in __exfat_truncate()
235 if (exfat_free_cluster(inode, &clu)) in __exfat_truncate()