diff options
author | Chandan Babu R <chandanrlinux@gmail.com> | 2021-01-23 03:48:14 +0300 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-01-23 03:54:48 +0300 |
commit | ee898d78c3540b44270a5fdffe208d7bbb219d93 (patch) | |
tree | 5e2fc0ce90698055e54ca72f6bdb6a2a2a7ca07b /fs/xfs/xfs_bmap_util.c | |
parent | 5f1d5bbfb2e674052a9fe542f53678978af20770 (diff) | |
download | linux-ee898d78c3540b44270a5fdffe208d7bbb219d93.tar.xz |
xfs: Check for extent overflow when remapping an extent
Remapping an extent involves unmapping the existing extent and mapping
in the new extent. When unmapping, an extent containing the entire unmap
range can be split into two extents,
i.e. | Old extent | hole | Old extent |
Hence extent count increases by 1.
Mapping in the new extent into the destination file can increase the
extent count by 1.
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Chandan Babu R <chandanrlinux@gmail.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_bmap_util.c')
0 files changed, 0 insertions, 0 deletions