Home
last modified time | relevance | path

Searched refs:i_cowfp (Results 1 – 8 of 8) sorted by relevance

/linux/fs/xfs/
H A Dxfs_bmap_util.c1659 ASSERT(!ip->i_cowfp || in xfs_swap_extents()
1660 ip->i_cowfp->if_format == XFS_DINODE_FMT_EXTENTS); in xfs_swap_extents()
1661 ASSERT(!tip->i_cowfp || in xfs_swap_extents()
1662 tip->i_cowfp->if_format == XFS_DINODE_FMT_EXTENTS); in xfs_swap_extents()
1664 swap(ip->i_cowfp, tip->i_cowfp); in xfs_swap_extents()
1666 if (ip->i_cowfp && ip->i_cowfp->if_bytes) in xfs_swap_extents()
1670 if (tip->i_cowfp && tip->i_cowfp->if_bytes) in xfs_swap_extents()
H A Dxfs_inode.h37 struct xfs_ifork *i_cowfp; /* copy on write extents */ member
121 return ip->i_cowfp; in xfs_ifork_ptr()
306 return ip->i_cowfp && ip->i_cowfp->if_bytes; in xfs_inode_has_cow_data()
H A Dxfs_aops.c228 XFS_WPC(wpc)->cow_seq != READ_ONCE(ip->i_cowfp->if_seq)) { in xfs_imap_valid()
296 xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, &imap)) in xfs_map_blocks()
299 XFS_WPC(wpc)->cow_seq = READ_ONCE(ip->i_cowfp->if_seq); in xfs_map_blocks()
H A Dxfs_reflink.c257 if (!xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, &got)) in xfs_reflink_convert_cow_locked()
278 } while (xfs_iext_next_extent(ip->i_cowfp, &icur, &got)); in xfs_reflink_convert_cow_locked()
327 if (!xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, cmap)) in xfs_find_trim_cow_extent()
518 if (!ip->i_cowfp) { in xfs_reflink_allocate_cow()
654 ASSERT(ip->i_cowfp); in xfs_reflink_cancel_cow_range()
H A Dxfs_iomap.c63 if ((iomap_flags & IOMAP_F_SHARED) && ip->i_cowfp) in xfs_iomap_inode_sequence()
64 cookie = (u64)READ_ONCE(ip->i_cowfp->if_seq) << 32; in xfs_iomap_inode_sequence()
1054 if (!ip->i_cowfp) { in xfs_buffered_write_iomap_begin()
1058 cow_eof = !xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, in xfs_buffered_write_iomap_begin()
1364 xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, &cmap)) in xfs_seek_iomap_begin()
H A Dxfs_icache.c114 ip->i_cowfp = NULL; in xfs_inode_alloc()
151 if (ip->i_cowfp) { in xfs_inode_free_callback()
152 xfs_idestroy_fork(ip->i_cowfp); in xfs_inode_free_callback()
153 kmem_cache_free(xfs_ifork_cache, ip->i_cowfp); in xfs_inode_free_callback()
/linux/fs/xfs/libxfs/
H A Dxfs_inode_fork.c687 return ip->i_cowfp; in xfs_iext_state_to_fork()
700 if (ip->i_cowfp) in xfs_ifork_init_cow()
703 ip->i_cowfp = kmem_cache_zalloc(xfs_ifork_cache, in xfs_ifork_init_cow()
705 ip->i_cowfp->if_format = XFS_DINODE_FMT_EXTENTS; in xfs_ifork_init_cow()
H A Dxfs_inode_buf.c185 ASSERT(ip->i_cowfp == NULL); in xfs_inode_from_disk()