From patchwork Wed Dec 13 03:04:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Changwei Ge X-Patchwork-Id: 10109147 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3274160327 for ; Wed, 13 Dec 2017 03:13:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F6DC28FA7 for ; Wed, 13 Dec 2017 03:13:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1432228FEF; Wed, 13 Dec 2017 03:13:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from aserp2130.oracle.com (aserp2130.oracle.com [141.146.126.79]) (using TLSv1.2 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D751628FA7 for ; Wed, 13 Dec 2017 03:13:15 +0000 (UTC) Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.21/8.16.0.21) with SMTP id vBD37JLf103772; Wed, 13 Dec 2017 03:11:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : date : message-id : mime-version : subject : list-id : list-unsubscribe : list-archive : list-post : list-help : list-subscribe : content-type : content-transfer-encoding : sender; s=corp-2017-10-26; bh=pxjGByRA/BnUYq2j8xg5TLYIdS+XZ77S1GJ6LlNeZT0=; b=ol19kKwTjJY0GhF6z6lxT61GwyTIMKInPHHMqbeVVLJGM7/kYMSLruZg2arkKvDgv58r XWJdoZaD8cn20YeGLwEAwF8JpIRDsGBvi9xsN7HbouPxCcrb4rOzhC55DggP74PzMJ85 FQS4ZIZHNgAw1i4YWo+tk6HEcVUt9AER2LUntvR6W6t+yPgeOJ8JANP/QrZ0+GyxvD+N lADIP1rkx4CzXloUYR+CvRFwfNdYJAHkjp9fBq07u4XWbWjOOAO5wJ9XrpTbzLhEJuki 8PoYvy0h2D4gzJ2cKGV9K8VPQycHV+2aJ7EY0e2w2iiH4OAMgMAsxeecoTn3/ayGEjOx 0g== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2130.oracle.com with ESMTP id 2etv0d80me-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 13 Dec 2017 03:11:30 +0000 Received: from oss.oracle.com (oss-old-reserved.oracle.com [137.254.22.2]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id vBD36NCr018507 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 13 Dec 2017 03:06:25 GMT Received: from localhost ([127.0.0.1] helo=lb-oss.oracle.com) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1eOxNH-0007EL-Nj; Tue, 12 Dec 2017 19:06:23 -0800 Received: from aserv0022.oracle.com ([141.146.126.234]) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1eOxMw-0007Dg-B3 for ocfs2-devel@oss.oracle.com; Tue, 12 Dec 2017 19:06:02 -0800 Received: from userp2040.oracle.com (userp2040.oracle.com [156.151.31.90]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id vBD361ck017350 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=OK); Wed, 13 Dec 2017 03:06:01 GMT Received: from pps.filterd (userp2040.oracle.com [127.0.0.1]) by userp2040.oracle.com (8.16.0.21/8.16.0.21) with SMTP id vBD32Bu0032818; Wed, 13 Dec 2017 03:06:01 GMT Received: from h3cmg01-ex.h3c.com (smtp.h3c.com [60.191.123.56]) by userp2040.oracle.com with ESMTP id 2etrgec3tm-1; Wed, 13 Dec 2017 03:05:51 +0000 Received: from BJHUB01-EX.srv.huawei-3com.com (unknown [10.63.20.169]) by h3cmg01-ex.h3c.com with smtp id 7f9d_03d5_23092220_69db_4533_b73c_3cfcb48cbfc6; Wed, 13 Dec 2017 11:05:36 +0800 Received: from H3CMLB14-EX.srv.huawei-3com.com ([fe80::f804:6772:bd71:f07f]) by BJHUB01-EX.srv.huawei-3com.com ([::1]) with mapi id 14.03.0248.002; Wed, 13 Dec 2017 11:04:49 +0800 From: Changwei Ge To: Andrew Morton , "ocfs2-devel@oss.oracle.com" Thread-Topic: [PATCH] ocfs2: clean dead code in suballoc.c Thread-Index: AdNzvyJ0EHd/ZmcwTSWzuizyEJjeAw== Date: Wed, 13 Dec 2017 03:04:48 +0000 Message-ID: <63ADC13FD55D6546B7DECE290D39E373F1F5A7C0@H3CMLB14-EX.srv.huawei-3com.com> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.125.136.231] MIME-Version: 1.0 X-CLX-Shades: MLX X-CLX-Response: 1TFkXGxkcEQpMehcaEQpZTRdnZnIRCllJFxpxGhAadwYbGxxxGBIQG3cGGBo GGhEKWV4XaG55EQpJRhdFWEtJRk91WlhFTl9JXkNFRBl1T0sRCkNOF1sfRW5/B0AeWxwcQwdaZV 4ZcHNsGBlNX1IdUlhOW2J7EQpYXBcfBBoEGxgYBxxLSEtPHhwaBRsaBBsaGgQeEgQbEBseGh8aE QpeWRd4cEAYGhEKTVwXGRsZEQpMWhdoaUJNeREKTEYXY2sRCkNaFxwaBBsTGwQbGBkEHxwRCkJe FxsRCkRYFxgRCkReFxkRCkRJFx4RCkJGF2cTbWAbW2VCH359EQpCXBcaEQpCRRduGVhMXmEBcFJ MYREKQk4XZEJ8WkVEQWIdZFARCkJMF29+XU0YBV1mGlJ7EQpCbBdkYU9LYEJIEngdZxEKQkAXbR l+XH9PWn9fXk0RCnBoF2FQGV8YT15QTRpuEBkaEQpwaBd6fRNJE3JfHnJwTxAZGhEKcGgXZHoFE k56bhxQa1sQGRoRCnBoF25tXV8YeUx8ekVnEBkaEQpwaBdjUB1NEkZ7RkRFeRAZGhEKcGwXbU4b b1MBR1JIHXMQGRoRCm1+FxoRClhNF0sRIA== X-PDR: PASS X-Source-IP: 60.191.123.56 X-ServerName: smtp.h3c.com X-Proofpoint-SPF-Result: temperror X-Proofpoint-SPF-Record: N/A X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8743 signatures=668646 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=0 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=136 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=969 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1712130040 X-Spam: Clean Subject: [Ocfs2-devel] [PATCH] ocfs2: clean dead code in suballoc.c X-BeenThere: ocfs2-devel@oss.oracle.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: ocfs2-devel-bounces@oss.oracle.com Errors-To: ocfs2-devel-bounces@oss.oracle.com X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8743 signatures=668646 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1712130041 X-Virus-Scanned: ClamAV using ClamSMTP Stack variable fe is no longer used, so trim it to save some cpu cycles and stack space. Signed-off-by: Changwei Ge --- fs/ocfs2/suballoc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/ocfs2/suballoc.c b/fs/ocfs2/suballoc.c index 71f22c8fbffd..a74108d22d47 100644 --- a/fs/ocfs2/suballoc.c +++ b/fs/ocfs2/suballoc.c @@ -2566,7 +2566,6 @@ static int _ocfs2_free_clusters(handle_t *handle, int status; u16 bg_start_bit; u64 bg_blkno; - struct ocfs2_dinode *fe; /* You can't ever have a contiguous set of clusters * bigger than a block group bitmap so we never have to worry @@ -2575,8 +2574,6 @@ static int _ocfs2_free_clusters(handle_t *handle, * gotten tested really well. */ BUG_ON(start_blk != ocfs2_clusters_to_blocks(bitmap_inode->i_sb, ocfs2_blocks_to_clusters(bitmap_inode->i_sb, start_blk))); - fe = (struct ocfs2_dinode *) bitmap_bh->b_data; - ocfs2_block_to_cluster_group(bitmap_inode, start_blk, &bg_blkno, &bg_start_bit);