]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/mlock: drop dead code in count_mm_mlocked_page_nr()
authorLiam Howlett <liam.howlett@oracle.com>
Wed, 15 Jun 2022 17:40:58 +0000 (17:40 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 26 Aug 2022 05:03:23 +0000 (22:03 -0700)
commit6ecb22095645e43d53a09c1efd1d96d2d7767a7b
tree7fcca9b5d195affc8e813f522851ed53fea727c8
parentdf05773246dcb229198a0f419a95c846655e74cc
mm/mlock: drop dead code in count_mm_mlocked_page_nr()

The check for mm being null has never been needed since the only caller
has always passed in current->mm.  Remove the check from
count_mm_mlocked_page_nr().

Link: https://lkml.kernel.org/r/20220615174050.738523-1-Liam.Howlett@oracle.com
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Suggested-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mlock.c