Lines Matching defs:iomap
14 #include <linux/iomap.h>
58 /* reference count when the mapping is used by dax iomap. */
388 static void fuse_fill_iomap_hole(struct iomap *iomap, loff_t length)
390 iomap->addr = IOMAP_NULL_ADDR;
391 iomap->length = length;
392 iomap->type = IOMAP_HOLE;
396 struct iomap *iomap, struct fuse_dax_mapping *dmap,
410 iomap->addr = dmap->window_offset + offset;
411 iomap->length = len;
413 iomap->length = ALIGN(len, PAGE_SIZE);
414 iomap->type = IOMAP_MAPPED;
422 /* iomap->private should be NULL */
423 WARN_ON_ONCE(iomap->private);
424 iomap->private = dmap;
427 fuse_fill_iomap_hole(iomap, length);
433 struct iomap *iomap)
480 fuse_fill_iomap(inode, pos, length, iomap, dmap, flags);
494 fuse_fill_iomap(inode, pos, length, iomap, alloc_dmap, flags);
501 struct iomap *iomap)
552 fuse_fill_iomap(inode, pos, length, iomap, dmap, flags);
562 unsigned int flags, struct iomap *iomap,
563 struct iomap *srcmap)
576 iomap->offset = pos;
577 iomap->flags = 0;
578 iomap->bdev = NULL;
579 iomap->dax_dev = fc->dax->dev;
607 flags, iomap);
609 fuse_fill_iomap(inode, pos, length, iomap, dmap, flags);
621 iomap);
629 fuse_fill_iomap_hole(iomap, length);
631 __func__, pos, length, iomap->length);
637 struct iomap *iomap)
639 struct fuse_dax_mapping *dmap = iomap->private;
650 /* DAX writes beyond end-of-file aren't handled using iomap, so the