Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: "Yan Zheng" <zheng.yan@oracle.com>
To: "Martin Bürger" <mbuerger@edu.uni-klu.ac.at>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: [PATCH] Fix csum error for compressed data
Date: Tue, 11 Nov 2008 16:57:15 +0800	[thread overview]
Message-ID: <3d0408630811110057lec87365w1095f570d4bd55e5@mail.gmail.com> (raw)
In-Reply-To: <200811110708.36712.mbuerger@edu.uni-klu.ac.at>

Hi Martin,

Please try following patch. Thank you,

---
diff -urp 2/fs/btrfs/file.c 5/fs/btrfs/file.c
--- 2/fs/btrfs/file.c	2008-11-11 10:43:08.000000000 +0800
+++ 5/fs/btrfs/file.c	2008-11-11 16:52:11.000000000 +0800
@@ -436,7 +436,7 @@ next_slot:
 			goto out;
 		}
 		if (recow) {
-			search_start = key.offset;
+			search_start = max(key.offset, start);
 			continue;
 		}
 		if (btrfs_key_type(&key) == BTRFS_EXTENT_DATA_KEY) {

  reply	other threads:[~2008-11-11  8:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-10  9:32 [PATCH] Fix csum error for compressed data Yan Zheng
2008-11-10 12:12 ` Chris Mason
2008-11-10 21:00   ` Martin Bürger
2008-11-10 21:09     ` Chris Mason
2008-11-11  6:08       ` Martin Bürger
2008-11-11  8:57         ` Yan Zheng [this message]
2008-11-11 17:14           ` Martin Bürger
2008-11-11 21:41             ` Chris Mason

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=3d0408630811110057lec87365w1095f570d4bd55e5@mail.gmail.com \
    --to=zheng.yan@oracle.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=mbuerger@edu.uni-klu.ac.at \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox