From patchwork Thu Sep 15 07:09:39 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robin Dong X-Patchwork-Id: 114764 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 0FDCAB71AD for ; Thu, 15 Sep 2011 17:10:13 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753408Ab1IOHKI (ORCPT ); Thu, 15 Sep 2011 03:10:08 -0400 Received: from mail-yi0-f46.google.com ([209.85.218.46]:38607 "EHLO mail-yi0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750788Ab1IOHKI (ORCPT ); Thu, 15 Sep 2011 03:10:08 -0400 Received: by yie30 with SMTP id 30so1969128yie.19 for ; Thu, 15 Sep 2011 00:10:07 -0700 (PDT) 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=+MeQ9KGfGOsvZ9+t1wxxNNRVKnbmW9VhkWBxlZr74rM=; b=lmN2shSR8c81M6a06yRm2MmQHCNCHKFg6BePEWo+Zx46G6/9qJVbbgvJpQLgVWpM6e QQD1mmFEnxohu4YKuuuDGkGl0XNJGULpzQuG9lW7YDucSEaWWCp/AbGmQ5SnjpfooMCK J4rm+DLxUJd39m+s/U+KZaQBZruT2e+0qZLls= Received: by 10.68.6.36 with SMTP id x4mr1430129pbx.219.1316070607706; Thu, 15 Sep 2011 00:10:07 -0700 (PDT) Received: from localhost.localdomain ([182.92.247.2]) by mx.google.com with ESMTPS id i3sm20418470pbg.10.2011.09.15.00.10.05 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 15 Sep 2011 00:10:07 -0700 (PDT) From: Robin Dong To: linux-ext4@vger.kernel.org Cc: Robin Dong Subject: [PATCH 3/4] ext4: remove unused argument in mb_find_extent Date: Thu, 15 Sep 2011 15:09:39 +0800 Message-Id: <1316070580-10723-3-git-send-email-hao.bigrat@gmail.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1316070580-10723-1-git-send-email-hao.bigrat@gmail.com> References: <1316070580-10723-1-git-send-email-hao.bigrat@gmail.com> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org From: Robin Dong The argument 'ord' in function mb_find_extent is redundant, so remove it. Signed-off-by: Robin Dong --- fs/ext4/mballoc.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index d0fc76e..99d123a 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c @@ -1390,7 +1390,6 @@ static int mb_find_extent(struct ext4_buddy *e4b, int order, int block, { int next = block; int max; - int ord; void *buddy; assert_spin_locked(ext4_group_lock_ptr(e4b->bd_sb, e4b->bd_group)); @@ -1432,9 +1431,8 @@ static int mb_find_extent(struct ext4_buddy *e4b, int order, int block, if (mb_test_bit(next, EXT4_MB_BITMAP(e4b))) break; - ord = mb_find_order_for_block(e4b, next); + order = mb_find_order_for_block(e4b, next); - order = ord; block = next >> order; ex->fe_len += 1 << order; }