Lines Matching refs:iomap

55 	struct iomap		*iomap,  in xfs_bmbt_to_iomap()  argument
66 iomap->addr = IOMAP_NULL_ADDR; in xfs_bmbt_to_iomap()
67 iomap->type = IOMAP_HOLE; in xfs_bmbt_to_iomap()
70 iomap->addr = IOMAP_NULL_ADDR; in xfs_bmbt_to_iomap()
71 iomap->type = IOMAP_DELALLOC; in xfs_bmbt_to_iomap()
73 iomap->addr = BBTOB(xfs_fsb_to_db(ip, imap->br_startblock)); in xfs_bmbt_to_iomap()
75 iomap->type = IOMAP_UNWRITTEN; in xfs_bmbt_to_iomap()
77 iomap->type = IOMAP_MAPPED; in xfs_bmbt_to_iomap()
79 iomap->offset = XFS_FSB_TO_B(mp, imap->br_startoff); in xfs_bmbt_to_iomap()
80 iomap->length = XFS_FSB_TO_B(mp, imap->br_blockcount); in xfs_bmbt_to_iomap()
81 iomap->bdev = target->bt_bdev; in xfs_bmbt_to_iomap()
82 iomap->dax_dev = target->bt_daxdev; in xfs_bmbt_to_iomap()
83 iomap->flags = flags; in xfs_bmbt_to_iomap()
87 iomap->flags |= IOMAP_F_DIRTY; in xfs_bmbt_to_iomap()
94 struct iomap *iomap, in xfs_hole_to_iomap() argument
100 iomap->addr = IOMAP_NULL_ADDR; in xfs_hole_to_iomap()
101 iomap->type = IOMAP_HOLE; in xfs_hole_to_iomap()
102 iomap->offset = XFS_FSB_TO_B(ip->i_mount, offset_fsb); in xfs_hole_to_iomap()
103 iomap->length = XFS_FSB_TO_B(ip->i_mount, end_fsb - offset_fsb); in xfs_hole_to_iomap()
104 iomap->bdev = target->bt_bdev; in xfs_hole_to_iomap()
105 iomap->dax_dev = target->bt_daxdev; in xfs_hole_to_iomap()
722 struct iomap *iomap, in xfs_direct_write_iomap_begin() argument
723 struct iomap *srcmap) in xfs_direct_write_iomap_begin()
803 return xfs_bmbt_to_iomap(ip, iomap, &imap, iomap_flags); in xfs_direct_write_iomap_begin()
834 return xfs_bmbt_to_iomap(ip, iomap, &imap, iomap_flags | IOMAP_F_NEW); in xfs_direct_write_iomap_begin()
845 return xfs_bmbt_to_iomap(ip, iomap, &cmap, IOMAP_F_SHARED); in xfs_direct_write_iomap_begin()
863 struct iomap *iomap, in xfs_buffered_write_iomap_begin() argument
864 struct iomap *srcmap) in xfs_buffered_write_iomap_begin()
883 flags, iomap, srcmap); in xfs_buffered_write_iomap_begin()
913 xfs_hole_to_iomap(ip, iomap, offset_fsb, imap.br_startoff); in xfs_buffered_write_iomap_begin()
1055 return xfs_bmbt_to_iomap(ip, iomap, &imap, IOMAP_F_NEW); in xfs_buffered_write_iomap_begin()
1059 return xfs_bmbt_to_iomap(ip, iomap, &imap, 0); in xfs_buffered_write_iomap_begin()
1067 return xfs_bmbt_to_iomap(ip, iomap, &cmap, IOMAP_F_SHARED); in xfs_buffered_write_iomap_begin()
1071 return xfs_bmbt_to_iomap(ip, iomap, &cmap, 0); in xfs_buffered_write_iomap_begin()
1085 struct iomap *iomap) in xfs_buffered_write_iomap_end() argument
1093 if (iomap->type != IOMAP_DELALLOC) in xfs_buffered_write_iomap_end()
1101 iomap->flags |= IOMAP_F_NEW; in xfs_buffered_write_iomap_end()
1124 if ((iomap->flags & IOMAP_F_NEW) && start_fsb < end_fsb) { in xfs_buffered_write_iomap_end()
1151 struct iomap *iomap, in xfs_read_iomap_begin() argument
1152 struct iomap *srcmap) in xfs_read_iomap_begin()
1180 return xfs_bmbt_to_iomap(ip, iomap, &imap, shared ? IOMAP_F_SHARED : 0); in xfs_read_iomap_begin()
1193 struct iomap *iomap, in xfs_seek_iomap_begin() argument
1194 struct iomap *srcmap) in xfs_seek_iomap_begin()
1239 error = xfs_bmbt_to_iomap(ip, iomap, &cmap, IOMAP_F_SHARED); in xfs_seek_iomap_begin()
1245 iomap->type = IOMAP_UNWRITTEN; in xfs_seek_iomap_begin()
1261 error = xfs_bmbt_to_iomap(ip, iomap, &imap, 0); in xfs_seek_iomap_begin()
1277 struct iomap *iomap, in xfs_xattr_iomap_begin() argument
1278 struct iomap *srcmap) in xfs_xattr_iomap_begin()
1308 return xfs_bmbt_to_iomap(ip, iomap, &imap, 0); in xfs_xattr_iomap_begin()