Lines Matching refs:wpc

185 	struct iomap_writepage_ctx	*wpc,  in xfs_imap_valid()  argument
189 if (offset < wpc->iomap.offset || in xfs_imap_valid()
190 offset >= wpc->iomap.offset + wpc->iomap.length) in xfs_imap_valid()
197 if (wpc->iomap.flags & IOMAP_F_SHARED) in xfs_imap_valid()
207 if (XFS_WPC(wpc)->data_seq != READ_ONCE(ip->i_df.if_seq)) in xfs_imap_valid()
210 XFS_WPC(wpc)->cow_seq != READ_ONCE(ip->i_cowfp->if_seq)) in xfs_imap_valid()
225 struct iomap_writepage_ctx *wpc, in xfs_convert_blocks() argument
234 seq = &XFS_WPC(wpc)->cow_seq; in xfs_convert_blocks()
236 seq = &XFS_WPC(wpc)->data_seq; in xfs_convert_blocks()
246 &wpc->iomap, seq); in xfs_convert_blocks()
249 } while (wpc->iomap.offset + wpc->iomap.length <= offset); in xfs_convert_blocks()
256 struct iomap_writepage_ctx *wpc, in xfs_map_blocks() argument
290 if (xfs_imap_valid(wpc, ip, offset)) in xfs_map_blocks()
313 XFS_WPC(wpc)->cow_seq = READ_ONCE(ip->i_cowfp->if_seq); in xfs_map_blocks()
324 if (xfs_imap_valid(wpc, ip, offset)) { in xfs_map_blocks()
336 XFS_WPC(wpc)->data_seq = READ_ONCE(ip->i_df.if_seq); in xfs_map_blocks()
362 xfs_bmbt_to_iomap(ip, &wpc->iomap, &imap, 0); in xfs_map_blocks()
366 error = xfs_convert_blocks(wpc, ip, whichfork, offset); in xfs_map_blocks()
389 if (cow_offset < wpc->iomap.offset + wpc->iomap.length) in xfs_map_blocks()
390 wpc->iomap.length = cow_offset - wpc->iomap.offset; in xfs_map_blocks()
393 ASSERT(wpc->iomap.offset <= offset); in xfs_map_blocks()
394 ASSERT(wpc->iomap.offset + wpc->iomap.length > offset); in xfs_map_blocks()
478 struct xfs_writepage_ctx wpc = { }; in xfs_vm_writepages() local
488 return iomap_writepages(mapping, wbc, &wpc.ctx, &xfs_writeback_ops); in xfs_vm_writepages()