summaryrefslogtreecommitdiffstats
path: root/Documentation/filesystems
diff options
context:
space:
mode:
authorBaolin Wang <baolin.wang@linux.alibaba.com>2022-06-20 13:47:15 +0200
committerakpm <akpm@linux-foundation.org>2022-07-04 03:08:49 +0200
commit0506c31d0a8443a9f55eb69d81db426f2eb3296e (patch)
tree625213fe266ba3572e6e09ed3855c7153e416803 /Documentation/filesystems
parentmm/madvise: minor cleanup for swapin_walk_pmd_entry() (diff)
downloadlinux-0506c31d0a8443a9f55eb69d81db426f2eb3296e.tar.xz
linux-0506c31d0a8443a9f55eb69d81db426f2eb3296e.zip
mm: rmap: simplify the hugetlb handling when unmapping or migration
According to previous discussion [1], there are so many levels of indenting to handle the hugetlb case when unmapping or migration. We can combine folio_test_anon() and huge_pmd_unshare() to save one level of indenting, by adding a local variable and moving the VM_BUG_ON() a little forward. No intended functional changes in this patch. [1] https://lore.kernel.org/all/0b986dc4-5843-3e2d-c2df-5a2e9f13e6ab@oracle.com/ Link: https://lkml.kernel.org/r/28414b1b96f095e838c1e548074f8e0fc70d78cf.1655724713.git.baolin.wang@linux.alibaba.com Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com> Cc: Mike Kravetz <mike.kravetz@oracle.com> Cc: Muchun Song <songmuchun@bytedance.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'Documentation/filesystems')
0 files changed, 0 insertions, 0 deletions