All of lore.kernel.org
 help / color / mirror / Atom feed
From: robbieko <robbieko@synology.com>
To: fstests@vger.kernel.org
Cc: linux-btrfs@vger.kernel.org, Robbie Ko <robbieko@synology.com>
Subject: [PATCH] btrfs: fix offset in test Btrfs delalloc accounting overflow
Date: Thu, 26 Oct 2017 14:02:15 +0800	[thread overview]
Message-ID: <1508997735-10630-1-git-send-email-robbieko@synology.com> (raw)

From: Robbie Ko <robbieko@synology.com>

Found it when test btrfs delalloc accounting overflow, Fix offset error.
We will fill in the gaps between the created extents,
then outstanding extents will all be merged into 1.

Signed-off-by: Robbie Ko <robbieko@synology.com>
---
 tests/btrfs/010 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/btrfs/010 b/tests/btrfs/010
index ea201ad..00cac67 100755
--- a/tests/btrfs/010
+++ b/tests/btrfs/010
@@ -58,7 +58,7 @@ done
 # Fill in the gaps between the created extents. The outstanding extents will
 # all be merged into 1, but there will still be 32k reserved.
 for ((i = 0; i < 32 * 1024; i++)); do
-	$XFS_IO_PROG -f -c "pwrite $((2 * 4096 * i + 1)) 4096" "$test_file" >>"$seqres.full"
+	$XFS_IO_PROG -f -c "pwrite $((2 * 4096 * i + 4096)) 4096" "$test_file" >>"$seqres.full"
 done
 
 # Flush the delayed allocations.
-- 
1.9.1


             reply	other threads:[~2017-10-26  6:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-26  6:02 robbieko [this message]
2017-10-27  0:59 ` [PATCH] btrfs: fix offset in test Btrfs delalloc accounting overflow robbieko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1508997735-10630-1-git-send-email-robbieko@synology.com \
    --to=robbieko@synology.com \
    --cc=fstests@vger.kernel.org \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.