diff options
author | Christoph Hellwig <hch@lst.de> | 2019-10-18 16:41:34 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-10-21 08:51:59 -0700 |
commit | 3590c4d8979bcc364e2ded95ab3966b4e436b7bf (patch) | |
tree | 054b216406d4302b620ab981e700a7ba82a25b07 /fs/xfs/xfs_reflink.c | |
parent | dcd6158d15c7a57d448103e1d51dac5e1a19a406 (diff) | |
download | linux-3590c4d8979bcc364e2ded95ab3966b4e436b7bf.tar.gz linux-3590c4d8979bcc364e2ded95ab3966b4e436b7bf.tar.bz2 linux-3590c4d8979bcc364e2ded95ab3966b4e436b7bf.zip |
iomap: ignore non-shared or non-data blocks in xfs_file_dirty
xfs_file_dirty is used to unshare reflink blocks. Rename the function
to xfs_file_unshare to better document that purpose, and skip iomaps
that are not shared and don't need zeroing. This will allow to simplify
the caller.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_reflink.c')
-rw-r--r-- | fs/xfs/xfs_reflink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_reflink.c b/fs/xfs/xfs_reflink.c index 0f08153b4994..a9634110c783 100644 --- a/fs/xfs/xfs_reflink.c +++ b/fs/xfs/xfs_reflink.c @@ -1442,7 +1442,7 @@ xfs_reflink_dirty_extents( flen = XFS_FSB_TO_B(mp, rlen); if (fpos + flen > isize) flen = isize - fpos; - error = iomap_file_dirty(VFS_I(ip), fpos, flen, + error = iomap_file_unshare(VFS_I(ip), fpos, flen, &xfs_iomap_ops); xfs_ilock(ip, XFS_ILOCK_EXCL); if (error) |