Lines Matching defs:shared

40  * means that when we want to write to a shared block, we allocate a new
122 * Given an AG extent, find the lowest-numbered run of shared blocks
125 * shared blocks. If there are no shared extents, fbno and flen will
159 * shared/unshared status. More specifically, this means that we
160 * find the lowest-numbered extent of shared blocks that coincides with
161 * the given block mapping. If the shared extent overlaps the start of
162 * the mapping, trim the mapping to the end of the shared extent. If
163 * the shared region intersects the mapping, trim the mapping to the
164 * start of the shared extent. If there are no shared regions that
171 bool *shared)
181 /* Holes, unwritten, and delalloc extents cannot be shared */
183 *shared = false;
199 *shared = false;
201 /* No shared blocks at all. */
207 * The start of this extent is shared. Truncate the
208 * mapping at the end of the shared region so that a
213 *shared = true;
218 * There's a shared extent midway through this extent.
219 * Truncate the mapping at the start of the shared
221 * start of the shared region.
231 bool *shared)
236 *shared = true;
240 /* Trim the mapping to the nearest shared extent boundary. */
241 return xfs_reflink_trim_around_shared(ip, imap, shared);
305 * is not shared we might have a preallocation for it in the COW fork. If so we
313 bool *shared,
331 return xfs_bmap_trim_cow(ip, imap, shared);
334 *shared = true;
384 bool *shared,
410 error = xfs_find_trim_cow_extent(ip, imap, cmap, shared, &found);
411 if (error || !*shared)
452 bool *shared,
473 error = xfs_find_trim_cow_extent(ip, imap, cmap, shared,
475 if (error || !*shared)
523 bool *shared,
536 error = xfs_find_trim_cow_extent(ip, imap, cmap, shared, &found);
537 if (error || !*shared)
546 * CoW fork does not have an extent and data extent is shared.
550 return xfs_reflink_fill_cow_hole(ip, imap, cmap, shared,
559 return xfs_reflink_fill_delalloc(ip, imap, cmap, shared,
1595 /* Is there still a shared block here? */
1608 * Clear the inode reflink flag if there are no shared extents.
1628 * We didn't find any shared blocks so turn off the reflink flag.
1646 * Clear the inode reflink flag if there are no shared extents and the size
1683 * Pre-COW all shared blocks within a given byte range of a file and turn off