]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
xfs/177: remove unused slab object count location checks
authorDave Chinner <dchinner@redhat.com>
Tue, 26 Nov 2024 20:58:10 +0000 (07:58 +1100)
committerZorro Lang <zlang@kernel.org>
Sun, 8 Dec 2024 14:09:47 +0000 (22:09 +0800)
Stale code; we count XFS inodes through the sysfs stats code now
so remove it.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Zorro lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/xfs/177

index 22719ba1c69db6fac3f2ace9d83269981027f10f..82b3ca264140d0604cf728b9358f8529ab1a9e34 100755 (executable)
@@ -58,13 +58,6 @@ dump_debug_info() {
        echo "round $1 baseline: $baseline_count high: $high_count fresh: $fresh_count post: $post_count end: $end_count" >> $seqres.full
 }
 
-# Either of these need to be available to monitor slab usage
-xfs_ino_objcount_file=/sys/kernel/slab/xfs_inode/objects
-slabinfo_file=/proc/slabinfo
-if [ ! -r "$xfs_ino_objcount_file" ] && [ ! -r "$slabinfo_file" ]; then
-       _notrun "Cannot find xfs_inode slab count?"
-fi
-
 # Background reclamation of disused xfs inodes is scheduled for ($xfssyncd / 6)
 # centiseconds after the first inode is tagged for reclamation.  It's not great
 # to encode this implementation detail in a test like this, but there isn't