From patchwork Wed Feb 2 20:12:31 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Goldwyn Rodriues X-Patchwork-Id: 527361 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p12KCZda010051 for ; Wed, 2 Feb 2011 20:12:36 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751603Ab1BBUMd (ORCPT ); Wed, 2 Feb 2011 15:12:33 -0500 Received: from mail-iw0-f174.google.com ([209.85.214.174]:41589 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752500Ab1BBUMc convert rfc822-to-8bit (ORCPT ); Wed, 2 Feb 2011 15:12:32 -0500 Received: by iwn9 with SMTP id 9so344599iwn.19 for ; Wed, 02 Feb 2011 12:12:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=6D0zY6ax/y+aEp9ced0uuQAZLZyKuUQUSSZ55tji51w=; b=BRy6HYYWUmOBx2j/JDY+ccYwl7Q6QMAHziKTaLjbrEdt9Gh0jBAMiaDgxbwPyFyzQO mtbDNOzBqbEZo3f18wRuwyQxQr2GVaMy7+hdJWZ+cqlmBCfoul88C57lqheDrgw56Ek/ 8cczD2BOduu4jYKurAZIRln4RY7Y8SvLoOqTQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=O/HG25KoxrzsXn9H5umUmWXHUEqmoPmOyZIHQX7yWZebw4DAhUsS4ByPGTQcjqaXgC 1K7Qqe8Xj+VSnIw150Hjruw4RY1CfHi+1wCmv6YKUle58AP4z0ZNQsqGt6QqgnZ9foig Qc475TX8ElGncQOTugIQ5cunsnUAFKguH+ClI= MIME-Version: 1.0 Received: by 10.42.164.199 with SMTP id h7mr1517114icy.375.1296677551857; Wed, 02 Feb 2011 12:12:31 -0800 (PST) Received: by 10.42.174.194 with HTTP; Wed, 2 Feb 2011 12:12:31 -0800 (PST) In-Reply-To: References: <4D3FF9B3.3030504@linux.intel.com> Date: Wed, 2 Feb 2011 14:12:31 -0600 Message-ID: Subject: Re: [PATCH] Btrfs: Fix balance panic From: Goldwyn Rodrigues To: helmut@hullen.de Cc: linux-btrfs@vger.kernel.org Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 02 Feb 2011 20:13:19 +0000 (UTC) diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 2e993cf..b871eb0 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -1914,10 +1914,7 @@ static int submit_extent_page(int rw, struct extent_io_tree *tree, return 0; } } - if (this_compressed) - nr = BIO_MAX_PAGES; - else - nr = bio_get_nr_vecs(bdev); + nr = bio_get_nr_vecs(bdev); bio = btrfs_bio_alloc(bdev, sector, nr, GFP_NOFS | __GFP_HIGH);