From patchwork Mon Nov 27 09:21:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: sunqiuyang X-Patchwork-Id: 10076137 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 088E46028E for ; Mon, 27 Nov 2017 09:16:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 087BA287C1 for ; Mon, 27 Nov 2017 09:16:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F150928DAD; Mon, 27 Nov 2017 09:16:16 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6BE09287C1 for ; Mon, 27 Nov 2017 09:16:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751445AbdK0JPe (ORCPT ); Mon, 27 Nov 2017 04:15:34 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:39472 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751277AbdK0JPd (ORCPT ); Mon, 27 Nov 2017 04:15:33 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 77397A3189C85; Mon, 27 Nov 2017 17:15:19 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.361.1; Mon, 27 Nov 2017 17:15:11 +0800 From: sunqiuyang To: , , CC: Subject: [PATCH 1/1] ext4: remove redundant assignment in ext4_iomap_begin() Date: Mon, 27 Nov 2017 17:21:27 +0800 Message-ID: <20171127092127.26193-1-sunqiuyang@huawei.com> X-Mailer: git-send-email 2.9.5 MIME-Version: 1.0 X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Qiuyang Sun This line will not change the value of map.m_lblk in any case. Signed-off-by: Qiuyang Sun --- fs/ext4/inode.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 9f836e2..d4a42b1 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -3443,7 +3443,6 @@ static int ext4_iomap_begin(struct inode *inode, loff_t offset, loff_t length, if (es.es_lblk < map.m_lblk) offs = map.m_lblk - es.es_lblk; - map.m_lblk = es.es_lblk + offs; map.m_len = es.es_len - offs; delalloc = true; }