nilfs2-delete-unnecessary-checks-before-brelse.patch removed from -mm tree
The quilt patch titled
Subject: nilfs2: delete unnecessary checks before brelse()
has been removed from the -mm tree. Its filename was
nilfs2-delete-unnecessary-checks-before-brelse.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Minghao Chi <[email protected]>
Subject: nilfs2: delete unnecessary checks before brelse()
Date: Wed, 21 Sep 2022 12:48:02 +0900
Patch series "nilfs2 minor amendments".
This patch (of 2):
The brelse() inline function tests whether its argument is NULL and then returns immediately. Thus remove the tests which are not needed around the shown calls.
---
fs/nilfs2/btree.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
fs/nilfs2/btree.c renamed from fs/nilfs2/btree.c~nilfs2-delete-unnecessary-checks-before-brelse +2 -4
@@ -1668,8 +1668,7 @@ static int nilfs_btree_check_delete(stru maxkey =nilfs_btree_node_get_key (node, nchildren -1 ); nextmaxkey = (nchildren >1 ) ?nilfs_btree_node_get_key (node, nchildren -2 ) :0 ; -if (bh !=NULL ) -brelse (bh); +brelse (bh);return (maxkey == key) && (nextmaxkey <NILFS_BMAP_LARGE_LOW ); }
@@ -1717,8 +1716,7 @@ static int nilfs_btree_gather_data(struc ptrs[i] =le64_to_cpu (dptrs[i]); } -if (bh !=NULL ) -brelse (bh); +brelse (bh);return nitems; }
_
Patches currently in -mm which might be from [email protected] are