]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs: refactor filesystem realtime geometry detection logic
authorDarrick J. Wong <djwong@kernel.org>
Fri, 28 Oct 2022 17:42:05 +0000 (10:42 -0700)
committerZorro Lang <zlang@kernel.org>
Sun, 30 Oct 2022 10:39:20 +0000 (18:39 +0800)
commit898ace3b1835553a379822df7386f27961c9cdb3
treed9906f202fff9f23179571dfacb88d0b456f4b94
parente33f8bfd0d7042b403ab9560186d23d93593098a
xfs: refactor filesystem realtime geometry detection logic

There are a lot of places where we open-code detecting the realtime
extent size and extent count of a specific filesystem.  Refactor this
into a couple of helpers to clean up the code.

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/populate
common/xfs
tests/xfs/146
tests/xfs/147
tests/xfs/530