]> www.infradead.org Git - users/jedix/linux-maple.git/commit
minor cleanup according to Peter Xu
authorBarry Song <v-songbaohua@oppo.com>
Wed, 26 Feb 2025 02:22:17 +0000 (15:22 +1300)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 4 Mar 2025 05:48:30 +0000 (21:48 -0800)
commitb3a9e101c0c0a2ff8cb45ac39ed78cf6f1e5e23f
treed9528a292ae5c856a86616086a057a551cb34275
parent51280173306142ada094da056e388ec8a7332daf
minor cleanup according to Peter Xu

According to Peter Xu:
1. Unnecessary line move.
2. Can drop this folio check as it just did check
   "!IS_ERR_OR_NULL(folio)"
3. Not sure if it can do any harm, but maybe still nicer
   to put swap before locking folio.

Link: https://lkml.kernel.org/r/20250226024411.47092-1-21cnbao@gmail.com
Signed-off-by: Barry Song <v-songbaohua@oppo.com>
Cc: Peter Xu <peterx@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/userfaultfd.c