proc-vmcore-let-pfn_is_ram-return-a-bool.patch removed from -mm tree
The patch titled
Subject: proc/vmcore: let pfn_is_ram() return a bool
has been removed from the -mm tree. Its filename was
proc-vmcore-let-pfn_is_ram-return-a-bool.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: David Hildenbrand <[email protected]>
Subject: proc/vmcore: let pfn_is_ram() return a bool
The callback should deal with errors internally, it doesn't make sense to expose these via pfn_is_ram(). We'll rework the callbacks next. Right now we consider errors as if "it's RAM"; no functional change.
Signed-off-by David Hildenbrand <[email protected]>
Cc Baoquan He <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Boris Ostrovsky <[email protected]>
Cc Dave Young <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Jason Wang <[email protected]>
Cc Juergen Gross <[email protected]>
Cc "Michael S. Tsirkin" <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Mike Rapoport <[email protected]>
Cc Oscar Salvador <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Vivek Goyal <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
fs/proc/vmcore.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
fs/proc/vmcore.c renamed from fs/proc/vmcore.c~proc-vmcore-let-pfn_is_ram-return-a-bool +4 -4
@@ -84,11 +84,11 @@ void unregister_oldmem_pfn_is_ram(void) }EXPORT_SYMBOL_GPL (unregister_oldmem_pfn_is_ram); -static int pfn_is_ram (unsigned long pfn) +static bool pfn_is_ram (unsigned long pfn) {int (*fn)(unsigned long pfn);/* pfn is ram unless fn() checks pagetype */ -int ret =1 ; +bool ret = true;/* * Ask hypervisor if the pfn is really ram.
@@ -97,7 +97,7 @@ static int pfn_is_ram(unsigned long pfn)*/ fn = oldmem_pfn_is_ram;if (fn) - ret =fn (pfn); + ret = !!fn (pfn);return ret; }
@@ -124,7 +124,7 @@ ssize_t read_from_oldmem(char *buf, size nr_bytes = count;/* If pfn is not ram, return zeros for sparse dump files */ -if (pfn_is_ram (pfn) ==0 ) +if (!pfn_is_ram (pfn))memset (buf,0 , nr_bytes);else {if (encrypted)
_
Patches currently in -mm which might be from [email protected] are