]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
fsx: factor out a file size update helper
authorBrian Foster <bfoster@redhat.com>
Wed, 28 Aug 2024 18:15:32 +0000 (14:15 -0400)
committerZorro Lang <zlang@kernel.org>
Mon, 2 Sep 2024 20:12:14 +0000 (04:12 +0800)
commit11dbbdff173734b9f01c9ed46f9e52c008774fa7
treede123b00563abbc0e4c12682036ce471bde9cd90
parentbc0c52655c5a80fcfa4a9b44e6661e5aa14cb67f
fsx: factor out a file size update helper

In preparation for support for eof page pollution, factor out a file
size update helper. This updates the internally tracked file size
based on the upcoming operation and zeroes the appropriate range in
the good buffer for extending operations.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
ltp/fsx.c