Lines Matching refs:dif
265 struct erofs_device_info *dif; in erofs_init_devices() local
287 idr_for_each_entry(&sbi->devs->tree, dif, id) { in erofs_init_devices()
307 bdev = blkdev_get_by_path(dif->path, in erofs_init_devices()
314 dif->bdev = bdev; in erofs_init_devices()
315 dif->dax_dev = fs_dax_get_by_bdev(bdev); in erofs_init_devices()
316 dif->blocks = le32_to_cpu(dis->blocks); in erofs_init_devices()
317 dif->mapped_blkaddr = le32_to_cpu(dis->mapped_blkaddr); in erofs_init_devices()
318 sbi->total_blocks += dif->blocks; in erofs_init_devices()
500 struct erofs_device_info *dif; in erofs_fc_parse_param() local
544 dif = kzalloc(sizeof(*dif), GFP_KERNEL); in erofs_fc_parse_param()
545 if (!dif) in erofs_fc_parse_param()
547 dif->path = kstrdup(param->string, GFP_KERNEL); in erofs_fc_parse_param()
548 if (!dif->path) { in erofs_fc_parse_param()
549 kfree(dif); in erofs_fc_parse_param()
553 ret = idr_alloc(&ctx->devs->tree, dif, 0, 0, GFP_KERNEL); in erofs_fc_parse_param()
556 kfree(dif->path); in erofs_fc_parse_param()
557 kfree(dif); in erofs_fc_parse_param()
728 struct erofs_device_info *dif = ptr; in erofs_release_device_info() local
730 fs_put_dax(dif->dax_dev); in erofs_release_device_info()
731 if (dif->bdev) in erofs_release_device_info()
732 blkdev_put(dif->bdev, FMODE_READ | FMODE_EXCL); in erofs_release_device_info()
733 kfree(dif->path); in erofs_release_device_info()
734 kfree(dif); in erofs_release_device_info()