From patchwork Tue Nov 15 08:07:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yongqiang Yang X-Patchwork-Id: 125725 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id EBE7AB6F68 for ; Tue, 15 Nov 2011 21:32:37 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754833Ab1KOKcf (ORCPT ); Tue, 15 Nov 2011 05:32:35 -0500 Received: from mail-iy0-f174.google.com ([209.85.210.174]:33075 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754831Ab1KOKcf (ORCPT ); Tue, 15 Nov 2011 05:32:35 -0500 Received: by mail-iy0-f174.google.com with SMTP id e36so8283497iag.19 for ; Tue, 15 Nov 2011 02:32:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=dedg1We04eWg509mHVQd6XjYt5xAgmdxfhRjrGolxLU=; b=XhL65p7i0QkI9x71V/guLe37aT6lhoUXhn50xrwkFegETn/f7WCHeI4jJ1dMX98pw+ whH0+gSXtBhgwrTcbcwiqdjwVwXi1MHjrnaN1kvyEUZtg5CLotmhY7C03N094oI+EIF6 nvdunIs5vqIVLzaA+cN793nALa6jhHAl9++Dc= Received: by 10.50.169.99 with SMTP id ad3mr27088975igc.6.1321353155108; Tue, 15 Nov 2011 02:32:35 -0800 (PST) Received: from localhost.localdomain ([159.226.43.42]) by mx.google.com with ESMTPS id pa4sm18996623igc.1.2011.11.15.02.32.32 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 15 Nov 2011 02:32:34 -0800 (PST) From: Yongqiang Yang To: tytso@mit.edu Cc: linux-ext4@vger.kernel.org, Yongqiang Yang Subject: [PATCH 3/5] ext4: let ext4_free_blocks handle multiblock correctly Date: Tue, 15 Nov 2011 16:07:52 +0800 Message-Id: <1321344474-14707-3-git-send-email-xiaoqiangnk@gmail.com> X-Mailer: git-send-email 1.7.5.1 In-Reply-To: <1321344474-14707-1-git-send-email-xiaoqiangnk@gmail.com> References: <1321344474-14707-1-git-send-email-xiaoqiangnk@gmail.com> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org We should not pass buffer whiose block number is not block + i. Signed-off-by: Yongqiang Yang --- fs/ext4/mballoc.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index 2529efc..a64b3b8 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c @@ -4572,6 +4572,7 @@ void ext4_free_blocks(handle_t *handle, struct inode *inode, block + i); ext4_forget(handle, flags & EXT4_FREE_BLOCKS_METADATA, inode, bh, block + i); + bh = NULL; } }