lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20171127092127.26193-1-sunqiuyang@huawei.com>
Date:   Mon, 27 Nov 2017 17:21:27 +0800
From:   sunqiuyang <sunqiuyang@...wei.com>
To:     <linux-kernel@...r.kernel.org>, <linux-fsdevel@...r.kernel.org>,
        <linux-ext4@...r.kernel.org>
CC:     <sunqiuyang@...wei.com>
Subject: [PATCH 1/1] ext4: remove redundant assignment in ext4_iomap_begin()

From: Qiuyang Sun <sunqiuyang@...wei.com>

This line will not change the value of map.m_lblk in any case.

Signed-off-by: Qiuyang Sun <sunqiuyang@...wei.com>
---
 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;
 			}
-- 
2.5.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ