• Home
  • Raw
  • Download

Lines Matching refs:iomap

54 	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->addr += target->bt_dax_part_off; in xfs_bmbt_to_iomap()
78 iomap->type = IOMAP_UNWRITTEN; in xfs_bmbt_to_iomap()
80 iomap->type = IOMAP_MAPPED; in xfs_bmbt_to_iomap()
83 iomap->offset = XFS_FSB_TO_B(mp, imap->br_startoff); in xfs_bmbt_to_iomap()
84 iomap->length = XFS_FSB_TO_B(mp, imap->br_blockcount); in xfs_bmbt_to_iomap()
86 iomap->dax_dev = target->bt_daxdev; in xfs_bmbt_to_iomap()
88 iomap->bdev = target->bt_bdev; in xfs_bmbt_to_iomap()
89 iomap->flags = iomap_flags; in xfs_bmbt_to_iomap()
93 iomap->flags |= IOMAP_F_DIRTY; in xfs_bmbt_to_iomap()
100 struct iomap *iomap, in xfs_hole_to_iomap() argument
106 iomap->addr = IOMAP_NULL_ADDR; in xfs_hole_to_iomap()
107 iomap->type = IOMAP_HOLE; in xfs_hole_to_iomap()
108 iomap->offset = XFS_FSB_TO_B(ip->i_mount, offset_fsb); in xfs_hole_to_iomap()
109 iomap->length = XFS_FSB_TO_B(ip->i_mount, end_fsb - offset_fsb); in xfs_hole_to_iomap()
110 iomap->bdev = target->bt_bdev; in xfs_hole_to_iomap()
111 iomap->dax_dev = target->bt_daxdev; in xfs_hole_to_iomap()
734 struct iomap *iomap, in xfs_direct_write_iomap_begin() argument
735 struct iomap *srcmap) in xfs_direct_write_iomap_begin()
816 return xfs_bmbt_to_iomap(ip, iomap, &imap, flags, iomap_flags); in xfs_direct_write_iomap_begin()
847 return xfs_bmbt_to_iomap(ip, iomap, &imap, flags, in xfs_direct_write_iomap_begin()
859 return xfs_bmbt_to_iomap(ip, iomap, &cmap, flags, IOMAP_F_SHARED); in xfs_direct_write_iomap_begin()
878 struct iomap *iomap) in xfs_dax_write_iomap_end() argument
904 struct iomap *iomap, in xfs_buffered_write_iomap_begin() argument
905 struct iomap *srcmap) in xfs_buffered_write_iomap_begin()
925 flags, iomap, srcmap); in xfs_buffered_write_iomap_begin()
957 xfs_hole_to_iomap(ip, iomap, offset_fsb, imap.br_startoff); in xfs_buffered_write_iomap_begin()
1099 return xfs_bmbt_to_iomap(ip, iomap, &imap, flags, IOMAP_F_NEW); in xfs_buffered_write_iomap_begin()
1103 return xfs_bmbt_to_iomap(ip, iomap, &imap, flags, 0); in xfs_buffered_write_iomap_begin()
1111 return xfs_bmbt_to_iomap(ip, iomap, &cmap, flags, in xfs_buffered_write_iomap_begin()
1116 return xfs_bmbt_to_iomap(ip, iomap, &cmap, flags, 0); in xfs_buffered_write_iomap_begin()
1130 struct iomap *iomap) in xfs_buffered_write_iomap_end() argument
1138 if (iomap->type != IOMAP_DELALLOC) in xfs_buffered_write_iomap_end()
1146 iomap->flags |= IOMAP_F_NEW; in xfs_buffered_write_iomap_end()
1169 if ((iomap->flags & IOMAP_F_NEW) && start_fsb < end_fsb) { in xfs_buffered_write_iomap_end()
1196 struct iomap *iomap, in xfs_read_iomap_begin() argument
1197 struct iomap *srcmap) in xfs_read_iomap_begin()
1225 return xfs_bmbt_to_iomap(ip, iomap, &imap, flags, in xfs_read_iomap_begin()
1239 struct iomap *iomap, in xfs_seek_iomap_begin() argument
1240 struct iomap *srcmap) in xfs_seek_iomap_begin()
1285 error = xfs_bmbt_to_iomap(ip, iomap, &cmap, flags, in xfs_seek_iomap_begin()
1292 iomap->type = IOMAP_UNWRITTEN; in xfs_seek_iomap_begin()
1308 error = xfs_bmbt_to_iomap(ip, iomap, &imap, flags, 0); in xfs_seek_iomap_begin()
1324 struct iomap *iomap, in xfs_xattr_iomap_begin() argument
1325 struct iomap *srcmap) in xfs_xattr_iomap_begin()
1355 return xfs_bmbt_to_iomap(ip, iomap, &imap, flags, 0); in xfs_xattr_iomap_begin()