summaryrefslogtreecommitdiff
path: root/fs/hpfs/map.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2024-05-01 21:40:51 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-05-25 17:21:31 +0300
commit8b6afad39bd168808e42f98959775a59c42fad76 (patch)
tree752aa8ae23a79bdfa2cac7742a91f0f475a4cab3 /fs/hpfs/map.c
parent142eafd24de513b7f4ec4274cf6dc8e53ca962cb (diff)
downloadlinux-8b6afad39bd168808e42f98959775a59c42fad76.tar.xz
xfs: use byte ranges for write cleanup ranges
[ Upstream commit b71f889c18ada210a97aa3eb5e00c0de552234c6 ] xfs_buffered_write_iomap_end() currently converts the byte ranges passed to it to filesystem blocks to pass them to the bmap code to punch out delalloc blocks, but then has to convert filesytem blocks back to byte ranges for page cache truncate. We're about to make the page cache truncate go away and replace it with a page cache walk, so having to convert everything to/from/to filesystem blocks is messy and error-prone. It is much easier to pass around byte ranges and convert to page indexes and/or filesystem blocks only where those units are needed. In preparation for the page cache walk being added, add a helper that converts byte ranges to filesystem blocks and calls xfs_bmap_punch_delalloc_range() and convert xfs_buffered_write_iomap_end() to calculate limits in byte ranges. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Leah Rumancik <leah.rumancik@gmail.com> Acked-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/hpfs/map.c')
0 files changed, 0 insertions, 0 deletions