From patchwork Thu Jun 21 18:31:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haibo Liu X-Patchwork-Id: 166373 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 52635B6F9D for ; Fri, 22 Jun 2012 04:31:17 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755936Ab2FUSbP (ORCPT ); Thu, 21 Jun 2012 14:31:15 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:56054 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755709Ab2FUSbP (ORCPT ); Thu, 21 Jun 2012 14:31:15 -0400 Received: by dady13 with SMTP id y13so1233107dad.19 for ; Thu, 21 Jun 2012 11:31:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=gkEhE6k58iWcNUjS6qDsUDi+W9/hdqFcJPI+K72jFTc=; b=ESOwsGO0Pe5VCOFSvIeI0hNEwzBvkww5VWRjygwiT4fNkd3c7FK9U7dgG9I+bJNGvs 7gexB+W3PcmUWWDBAKS6S52cE82gIeqvSwmbzzRGaP0zz8kCER+hjjo/RdcO7iSm8fE4 OSrn/AmWFl441wn9tzteJIS+q2G6xXVYNEGN/qbj+Fi7+xbmXCHtWU+jWQVPQ08IPca6 YjX4i1BccBACBNPqI1U6bIhGifr79eWO40IhMYUVr4LGVpmF2lGQ9pA9vBwvJHz8nxX9 zWzHRJtT7dhdDaEtUnVeBS4xAf8gXw9L0GS+5uttG4FprpWAb5L3mi0mah9VNQam2V/G fVgQ== Received: by 10.68.190.102 with SMTP id gp6mr1767422pbc.5.1340303474824; Thu, 21 Jun 2012 11:31:14 -0700 (PDT) Received: from tidus-virtual-machine.localdomain ([113.111.69.112]) by mx.google.com with ESMTPS id rv9sm36361702pbc.43.2012.06.21.11.31.12 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 21 Jun 2012 11:31:14 -0700 (PDT) From: Haibo To: linux-ext4@vger.kernel.org Cc: Haibo Liu , Haibo Liu Subject: [PATCH][v2] ext4: delete a no useful sentence Date: Fri, 22 Jun 2012 02:31:06 +0800 Message-Id: <1340303466-7967-1-git-send-email-HaiboLiu6@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org From: Haibo Liu In this patch, the sentence "poff = block % blocks_per_page" in ext4_mb_get_buddy_page_lock has no effect. So we should delete it to save cpu. v1->v2: update the patch subject and the patch comment. Signed-off-by: Haibo Liu --- fs/ext4/mballoc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index cb990b2..7223bd4 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c @@ -1016,7 +1016,6 @@ static int ext4_mb_get_buddy_page_lock(struct super_block *sb, block++; pnum = block / blocks_per_page; - poff = block % blocks_per_page; page = find_or_create_page(inode->i_mapping, pnum, GFP_NOFS); if (!page) return -EIO;