[PATCH v5 5/5] s390/vmcore: Use vmcore for zfcpdump

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



(2013/06/08 1:56), Michael Holzheu wrote:
<cut>
> @@ -82,6 +116,43 @@ int remap_oldmem_pfn_range(struct vm_area_struct *vma, unsigned long from,
>   }
>
>   /*
> + * Remap "oldmem" for zfcpdump
> + *
> + * We only map available memory above ZFCPDUMP_HSA_SIZE. Memory below
> + * ZFCPDUMP_HSA_SIZE is read on demand using the copy_oldmem_page() function.
> + */
> +static int remap_oldmem_pfn_range_zfcpdump(struct vm_area_struct *vma,
> +					   unsigned long from,
> +					   unsigned long pfn,
> +					   unsigned long size, pgprot_t prot)
> +{
> +	unsigned long size_hsa;
> +
> +	if (pfn < ZFCPDUMP_HSA_SIZE >> PAGE_SHIFT) {
> +		size_hsa = min(size, OLDMEM_SIZE - (pfn << PAGE_SHIFT));

ZFCPDUMP_HSA_SIZE?

-- 
Thanks.
HATAYAMA, Daisuke




[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux