Home
last modified time | relevance | path

Searched refs:dif (Results 1 – 2 of 2) sorted by relevance

/fs/erofs/
Dsuper.c179 struct erofs_device_info *dif, erofs_off_t *pos) in erofs_init_device() argument
192 if (!dif->path) { in erofs_init_device()
197 dif->path = kmemdup_nul(dis->tag, sizeof(dis->tag), GFP_KERNEL); in erofs_init_device()
198 if (!dif->path) in erofs_init_device()
203 fscache = erofs_fscache_register_cookie(sb, dif->path, 0); in erofs_init_device()
206 dif->fscache = fscache; in erofs_init_device()
208 bdev = blkdev_get_by_path(dif->path, FMODE_READ | FMODE_EXCL, in erofs_init_device()
212 dif->bdev = bdev; in erofs_init_device()
213 dif->dax_dev = fs_dax_get_by_bdev(bdev, &dif->dax_part_off, in erofs_init_device()
217 dif->blocks = le32_to_cpu(dis->blocks); in erofs_init_device()
[all …]
Ddata.c206 struct erofs_device_info *dif; in erofs_map_dev() local
217 dif = idr_find(&devs->tree, map->m_deviceid - 1); in erofs_map_dev()
218 if (!dif) { in erofs_map_dev()
222 map->m_bdev = dif->bdev; in erofs_map_dev()
223 map->m_daxdev = dif->dax_dev; in erofs_map_dev()
224 map->m_dax_part_off = dif->dax_part_off; in erofs_map_dev()
225 map->m_fscache = dif->fscache; in erofs_map_dev()
229 idr_for_each_entry(&devs->tree, dif, id) { in erofs_map_dev()
232 if (!dif->mapped_blkaddr) in erofs_map_dev()
234 startoff = erofs_pos(sb, dif->mapped_blkaddr); in erofs_map_dev()
[all …]