Return-Path: Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Zheng Liu" , "Zheng Liu" , "Theodore Ts'o" Date: Thu, 11 Sep 2014 13:32:13 +0100 Message-ID: Subject: [PATCH 3.2 033/131] ext4: cleanup in ext4_discard_allocated_blocks() In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-ID: 3.2.63-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Zheng Liu commit 400db9d30146dc062aaba97a6301b425eb6015bc upstream. remove 'len' variable in ext4_discard_allocated_blocks() because it is useless. Signed-off-by: Zheng Liu Signed-off-by: "Theodore Ts'o" Signed-off-by: Ben Hutchings --- fs/ext4/mballoc.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c @@ -3128,13 +3128,9 @@ static void ext4_mb_collect_stats(struct static void ext4_discard_allocated_blocks(struct ext4_allocation_context *ac) { struct ext4_prealloc_space *pa = ac->ac_pa; - int len; - - if (pa && pa->pa_type == MB_INODE_PA) { - len = ac->ac_b_ex.fe_len; - pa->pa_free += len; - } + if (pa && pa->pa_type == MB_INODE_PA) + pa->pa_free += ac->ac_b_ex.fe_len; } /*