mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 20:34:23 -04:00
xfs: handle "raw" delayed extents xfs_reflink_trim_around_shared
Delalloc extents in the extent list contain the number of reserved indirect blocks in their startblock value and don't use the magic DELAYSTARTBLOCK constant. Ensure that xfs_reflink_trim_around_shared handles them properly by checking for isnullstartblock(). Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
committed by
Dave Chinner
parent
0a0af28cad
commit
62c5ac89de
@@ -182,7 +182,8 @@ xfs_reflink_trim_around_shared(
|
||||
if (!xfs_is_reflink_inode(ip) ||
|
||||
ISUNWRITTEN(irec) ||
|
||||
irec->br_startblock == HOLESTARTBLOCK ||
|
||||
irec->br_startblock == DELAYSTARTBLOCK) {
|
||||
irec->br_startblock == DELAYSTARTBLOCK ||
|
||||
isnullstartblock(irec->br_startblock)) {
|
||||
*shared = false;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user