]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
common: split _get_hugepagesize into detection and actual query
authorDarrick J. Wong <djwong@kernel.org>
Tue, 29 Aug 2023 23:03:37 +0000 (16:03 -0700)
committerZorro Lang <zlang@kernel.org>
Sat, 2 Sep 2023 05:54:38 +0000 (13:54 +0800)
commitbfe2fd60049e91334ce559309c24e1543a2031f7
tree24eea4ee5c4eee00c4699bb7fb0f405eba4b2826
parentc5cef5ba74ede0b42a1f90e29b4175ed5cbb6a27
common: split _get_hugepagesize into detection and actual query

This helper has two parts -- querying the value, and _notrun'ing the
test if huge pages aren't turned on.  Break these into the usual
_require_hugepages and _get_hugepagesize predicates so that we can adapt
xfs/559 to large folios being used for writes.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/rc
tests/generic/413
tests/generic/605