Lines Matching refs:iomap
388 static void fuse_fill_iomap_hole(struct iomap *iomap, loff_t length) in fuse_fill_iomap_hole() argument
390 iomap->addr = IOMAP_NULL_ADDR; in fuse_fill_iomap_hole()
391 iomap->length = length; in fuse_fill_iomap_hole()
392 iomap->type = IOMAP_HOLE; in fuse_fill_iomap_hole()
396 struct iomap *iomap, struct fuse_dax_mapping *dmap, in fuse_fill_iomap() argument
410 iomap->addr = dmap->window_offset + offset; in fuse_fill_iomap()
411 iomap->length = len; in fuse_fill_iomap()
413 iomap->length = ALIGN(len, PAGE_SIZE); in fuse_fill_iomap()
414 iomap->type = IOMAP_MAPPED; in fuse_fill_iomap()
423 WARN_ON_ONCE(iomap->private); in fuse_fill_iomap()
424 iomap->private = dmap; in fuse_fill_iomap()
427 fuse_fill_iomap_hole(iomap, length); in fuse_fill_iomap()
433 struct iomap *iomap) in fuse_setup_new_dax_mapping() argument
480 fuse_fill_iomap(inode, pos, length, iomap, dmap, flags); in fuse_setup_new_dax_mapping()
494 fuse_fill_iomap(inode, pos, length, iomap, alloc_dmap, flags); in fuse_setup_new_dax_mapping()
501 struct iomap *iomap) in fuse_upgrade_dax_mapping() argument
552 fuse_fill_iomap(inode, pos, length, iomap, dmap, flags); in fuse_upgrade_dax_mapping()
562 unsigned int flags, struct iomap *iomap, in fuse_iomap_begin() argument
563 struct iomap *srcmap) in fuse_iomap_begin()
576 iomap->offset = pos; in fuse_iomap_begin()
577 iomap->flags = 0; in fuse_iomap_begin()
578 iomap->bdev = NULL; in fuse_iomap_begin()
579 iomap->dax_dev = fc->dax->dev; in fuse_iomap_begin()
607 flags, iomap); in fuse_iomap_begin()
609 fuse_fill_iomap(inode, pos, length, iomap, dmap, flags); in fuse_iomap_begin()
621 iomap); in fuse_iomap_begin()
629 fuse_fill_iomap_hole(iomap, length); in fuse_iomap_begin()
631 __func__, pos, length, iomap->length); in fuse_iomap_begin()
637 struct iomap *iomap) in fuse_iomap_end() argument
639 struct fuse_dax_mapping *dmap = iomap->private; in fuse_iomap_end()