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
160 * shared/unshared status. More specifically, this means that we
161 * find the lowest-numbered extent of shared blocks that coincides with
162 * the given block mapping. If the shared extent overlaps the start of
163 * the mapping, trim the mapping to the end of the shared extent. If
164 * the shared region intersects the mapping, trim the mapping to the
165 * start of the shared extent. If there are no shared regions that
172 bool *shared)
181 /* Holes, unwritten, and delalloc extents cannot be shared */
183 *shared = false;
198 *shared = false;
200 /* No shared blocks at all. */
204 * The start of this extent is shared. Truncate the
205 * mapping at the end of the shared region so that a
210 *shared = true;
214 * There's a shared extent midway through this extent.
215 * Truncate the mapping at the start of the shared
217 * start of the shared region.
228 bool *shared)
233 *shared = true;
237 /* Trim the mapping to the nearest shared extent boundary. */
238 return xfs_reflink_trim_around_shared(ip, imap, shared);
302 * is not shared we might have a preallocation for it in the COW fork. If so we
310 bool *shared,
328 return xfs_bmap_trim_cow(ip, imap, shared);
331 *shared = true;
349 bool *shared,
368 error = xfs_find_trim_cow_extent(ip, imap, cmap, shared, &found);
369 if (error || !*shared)
393 error = xfs_find_trim_cow_extent(ip, imap, cmap, shared, &found);
394 if (error || !*shared)
1394 /* Is there still a shared block here? */
1407 * Clear the inode reflink flag if there are no shared extents.
1427 * We didn't find any shared blocks so turn off the reflink flag.
1445 * Clear the inode reflink flag if there are no shared extents and the size
1482 * Pre-COW all shared blocks within a given byte range of a file and turn off