Re: [PATCH v2 0/9] sparc64: Support 47-bit physical addresses.

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

 



From: Gurudas Pai <gurudas.pai@xxxxxxxxxx>
Date: Mon, 30 Sep 2013 17:42:02 -0700

> On 09/30/2013 04:51 PM, David Miller wrote:
>> From: Gurudas Pai <gurudas.pai@xxxxxxxxxx>
>> Date: Mon, 30 Sep 2013 16:47:48 -0700
>>
>>> Allocate 10 hugepages, and run a test using tool 'fio' with following
>>> jobfile.
>>> Fio just hangs. Basically issue is with O_DIRECT and hugepages. If you
>>> comment
>>> out "direct=1" from jobfile test works fine.
>> This worked before my changes right?
> No, Just now tried with old kernel, it hangs as well.

This should fix it:

diff --git a/include/asm-generic/hugetlb.h b/include/asm-generic/hugetlb.h
index d06079c..99b490b 100644
--- a/include/asm-generic/hugetlb.h
+++ b/include/asm-generic/hugetlb.h
@@ -6,12 +6,12 @@ static inline pte_t mk_huge_pte(struct page *page, pgprot_t pgprot)
 	return mk_pte(page, pgprot);
 }
 
-static inline int huge_pte_write(pte_t pte)
+static inline unsigned long huge_pte_write(pte_t pte)
 {
 	return pte_write(pte);
 }
 
-static inline int huge_pte_dirty(pte_t pte)
+static inline unsigned long huge_pte_dirty(pte_t pte)
 {
 	return pte_dirty(pte);
 }
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux