]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
fsx: support reads/writes from buffers backed by hugepages
authorJoanne Koong <joannelkoong@gmail.com>
Tue, 21 Jan 2025 21:56:40 +0000 (13:56 -0800)
committerZorro Lang <zlang@kernel.org>
Sat, 1 Feb 2025 06:04:02 +0000 (14:04 +0800)
commit40150a9364492a770da30728b0ee6175bdf1c5e6
tree49894f78e6d1ee3af7e44f4307f9abf3d4b5f3c9
parent6bf32d1a46d4f01d5e45032369a44693d7793fa4
fsx: support reads/writes from buffers backed by hugepages

Add support for reads/writes from buffers backed by hugepages.
This can be enabled through the '-h' flag. This flag should only be used
on systems where THP capabilities are enabled.

This is motivated by a recent bug that was due to faulty handling of
userspace buffers backed by hugepages. This patch is a mitigation
against problems like this in the future.

Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Reviewed-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