Lines Matching refs:wpc

278 	struct iomap_writepage_ctx	*wpc,  in xfs_imap_valid()  argument
282 if (offset < wpc->iomap.offset || in xfs_imap_valid()
283 offset >= wpc->iomap.offset + wpc->iomap.length) in xfs_imap_valid()
290 if (wpc->iomap.flags & IOMAP_F_SHARED) in xfs_imap_valid()
300 if (XFS_WPC(wpc)->data_seq != READ_ONCE(ip->i_df.if_seq)) in xfs_imap_valid()
303 XFS_WPC(wpc)->cow_seq != READ_ONCE(ip->i_cowfp->if_seq)) in xfs_imap_valid()
318 struct iomap_writepage_ctx *wpc, in xfs_convert_blocks() argument
327 seq = &XFS_WPC(wpc)->cow_seq; in xfs_convert_blocks()
329 seq = &XFS_WPC(wpc)->data_seq; in xfs_convert_blocks()
339 &wpc->iomap, seq); in xfs_convert_blocks()
342 } while (wpc->iomap.offset + wpc->iomap.length <= offset); in xfs_convert_blocks()
349 struct iomap_writepage_ctx *wpc, in xfs_map_blocks() argument
383 if (xfs_imap_valid(wpc, ip, offset)) in xfs_map_blocks()
407 XFS_WPC(wpc)->cow_seq = READ_ONCE(ip->i_cowfp->if_seq); in xfs_map_blocks()
418 if (xfs_imap_valid(wpc, ip, offset)) { in xfs_map_blocks()
430 XFS_WPC(wpc)->data_seq = READ_ONCE(ip->i_df.if_seq); in xfs_map_blocks()
456 xfs_bmbt_to_iomap(ip, &wpc->iomap, &imap, 0); in xfs_map_blocks()
460 error = xfs_convert_blocks(wpc, ip, whichfork, offset); in xfs_map_blocks()
483 if (cow_offset < wpc->iomap.offset + wpc->iomap.length) in xfs_map_blocks()
484 wpc->iomap.length = cow_offset - wpc->iomap.offset; in xfs_map_blocks()
487 ASSERT(wpc->iomap.offset <= offset); in xfs_map_blocks()
488 ASSERT(wpc->iomap.offset + wpc->iomap.length > offset); in xfs_map_blocks()
578 struct xfs_writepage_ctx wpc = { }; in xfs_vm_writepage() local
586 return iomap_writepage(page, wbc, &wpc.ctx, &xfs_writeback_ops); in xfs_vm_writepage()
594 struct xfs_writepage_ctx wpc = { }; in xfs_vm_writepages() local
604 return iomap_writepages(mapping, wbc, &wpc.ctx, &xfs_writeback_ops); in xfs_vm_writepages()