diff options
author | Shiyang Ruan <ruansy.fnst@fujitsu.com> | 2022-12-01 15:31:41 +0000 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-12-11 18:12:16 -0800 |
commit | 0e79e3736d54bb8efbc9fb29cc3b54a132783565 (patch) | |
tree | 0003059835fda355a1878373412fded18170d916 /fs/xfs/xfs_reflink.c | |
parent | c6f0b395b2110aa26a134a9a395875b1ec0a5aae (diff) | |
download | linux-0e79e3736d54bb8efbc9fb29cc3b54a132783565.tar.bz2 |
fsdax: dedupe: iter two files at the same time
The iomap_iter() on a range of one file may loop more than once. In this
case, the inner dst_iter can update its iomap but the outer src_iter
can't. This may cause the wrong remapping in filesystem. Let them called
at the same time.
Link: https://lkml.kernel.org/r/1669908701-93-1-git-send-email-ruansy.fnst@fujitsu.com
Signed-off-by: Shiyang Ruan <ruansy.fnst@fujitsu.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Cc: Alistair Popple <apopple@nvidia.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Jason Gunthorpe <jgg@nvidia.com>
Cc: John Hubbard <jhubbard@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/xfs/xfs_reflink.c')
0 files changed, 0 insertions, 0 deletions