x86/paging: tidy paging_mfn_is_dirty()
authorJan Beulich <jbeulich@suse.com>
Wed, 12 Jan 2022 07:53:05 +0000 (08:53 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 12 Jan 2022 07:53:05 +0000 (08:53 +0100)
commitdc773e0e8997f10c4d369f9b60bc529a05de0b79
tree0a8ce51bf9846eb00e30ffc0ded0eb0762b34202
parent22891e12a45f9bb2e1dbb5daf2ba39cbe002e4f4
x86/paging: tidy paging_mfn_is_dirty()

The function returning a boolean indicator, make it return bool. Also
constify its struct domain parameter, albeit requiring to also adjust
mm_locked_by_me(). Furthermore the function is used by shadow code only.

Since mm_locked_by_me() needs touching anyway, also switch its return
type to bool.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/include/asm/paging.h
xen/arch/x86/mm/mm-locks.h
xen/arch/x86/mm/paging.c