xfs
[Top] [All Lists]

[PATCH 1/6] generic/204: tweak reserve pool size

To: xfs@xxxxxxxxxxx
Subject: [PATCH 1/6] generic/204: tweak reserve pool size
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Wed, 23 Apr 2014 08:04:29 +1000
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1398204274-2113-1-git-send-email-david@xxxxxxxxxxxxx>
References: <1398204274-2113-1-git-send-email-david@xxxxxxxxxxxxx>
From: Dave Chinner <dchinner@xxxxxxxxxx>

On small block size filesystems, the reserve pool size is kept
constant at 4MB. filesystems with smaller blocks use comparitively
more blocks for indexing metadata (e.g. in the inode and extent
btrees) and so having a higher indirect block usage. Hence we need
to leave the reserve pool at 1024 block and not scale it for a
constant size.

This makes the test pass on a filesystem made with MKFS_OPTIONS="-b
size=1024 -m crc=1".

Signed-off-by: Dave Chinner <dchinner@xxxxxxxxxx>
---
 tests/generic/204 | 2 --
 1 file changed, 2 deletions(-)

diff --git a/tests/generic/204 b/tests/generic/204
index 4ebab26..de029c6 100755
--- a/tests/generic/204
+++ b/tests/generic/204
@@ -74,7 +74,6 @@ space=97920000
 #      files = (97920000 / (isize + bsize))
 
 files=$((space / (isize + dbsize)))
-resv_blks=$((resv_blks * (4096 / dbsize)))
 
 echo files $files, resvblks $resv_blks >> $seqres.full
 _scratch_resvblks $resv_blks >> $seqres.full 2>&1
@@ -88,5 +87,4 @@ _check_scratch_fs
 
 # success, all done
 echo "*** done"
-rm -f $seqres.full
 status=0
-- 
1.9.0

<Prev in Thread] Current Thread [Next in Thread>