Home
last modified time | relevance | path

Searched refs:dclus (Results 1 – 5 of 5) sorted by relevance

/linux-4.4.14/fs/fat/
Dcache.c210 static inline int cache_contiguous(struct fat_cache_id *cid, int dclus) in cache_contiguous() argument
213 return ((cid->dcluster + cid->nr_contig) == dclus); in cache_contiguous()
216 static inline void cache_init(struct fat_cache_id *cid, int fclus, int dclus) in cache_init() argument
220 cid->dcluster = dclus; in cache_init()
224 int fat_get_cluster(struct inode *inode, int cluster, int *fclus, int *dclus) in fat_get_cluster() argument
235 *dclus = MSDOS_I(inode)->i_start; in fat_get_cluster()
239 if (fat_cache_lookup(inode, cluster, &cid, fclus, dclus) < 0) { in fat_get_cluster()
259 nr = fat_ent_read(inode, &fatent, *dclus); in fat_get_cluster()
274 *dclus = nr; in fat_get_cluster()
275 if (!cache_contiguous(&cid, *dclus)) in fat_get_cluster()
[all …]
Dmisc.c111 int fclus, dclus; in fat_chain_add() local
113 ret = fat_get_cluster(inode, FAT_ENT_EOF, &fclus, &dclus); in fat_chain_add()
117 last = dclus; in fat_chain_add()
Dfile.c253 int ret, fclus, dclus; in fat_free() local
255 ret = fat_get_cluster(inode, skip - 1, &fclus, &dclus); in fat_free()
262 ret = fat_ent_read(inode, &fatent, dclus); in fat_free()
Dfat.h287 int *fclus, int *dclus);
Dinode.c438 int ret, fclus, dclus; in fat_calc_dir_size() local
444 ret = fat_get_cluster(inode, FAT_ENT_EOF, &fclus, &dclus); in fat_calc_dir_size()