aboutsummaryrefslogtreecommitdiff
path: root/mm/swapfile.c
diff options
context:
space:
mode:
authorNicholas Piggin2021-05-05 22:15:09 +1000
committerMichael Ellerman2021-05-06 00:25:42 +1000
commit32b48bf8514c28cdc89cd8069eceeb6e6cff0612 (patch)
tree2c1898cbe0a30fe1d5064ea7797f781395dc2a7f /mm/swapfile.c
parentc6b05f4e233cc666f003e9fe68b2f765952875a9 (diff)
KVM: PPC: Book3S HV: Fix conversion to gfn-based MMU notifier callbacks
Commit b1c5356e873c ("KVM: PPC: Convert to the gfn-based MMU notifier callbacks") causes unmap_gfn_range and age_gfn callbacks to only work on the first gfn in the range. It also makes the aging callbacks call into both radix and hash aging functions for radix guests. Fix this. Add warnings for the single-gfn calls that have been converted to range callbacks, in case they ever receieve ranges greater than 1. Fixes: b1c5356e873c ("KVM: PPC: Convert to the gfn-based MMU notifier callbacks") Reported-by: Bharata B Rao <bharata@linux.ibm.com> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Tested-by: Bharata B Rao <bharata@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20210505121509.1470207-1-npiggin@gmail.com
Diffstat (limited to 'mm/swapfile.c')
0 files changed, 0 insertions, 0 deletions