diff for duplicates of <20200420124434.47330-4-aneesh.kumar@linux.ibm.com> diff --git a/a/1.txt b/N1/1.txt index 7ddd068..1559b56 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -24,7 +24,7 @@ index 368b136517e0..03521a8b0292 100644 +static inline bool pte_hw_valid(pte_t pte) +{ -+ return (pte_raw(pte) & cpu_to_be64(_PAGE_PRESENT | _PAGE_PTE)) = ++ return (pte_raw(pte) & cpu_to_be64(_PAGE_PRESENT | _PAGE_PTE)) == + cpu_to_be64(_PAGE_PRESENT | _PAGE_PTE); +} + @@ -43,7 +43,7 @@ index 368b136517e0..03521a8b0292 100644 - return !!(pte_raw(pte) & cpu_to_be64(_PAGE_PRESENT)); + if (pte_hw_valid(pte)) + return true; -+ return (pte_raw(pte) & cpu_to_be64(_PAGE_INVALID | _PAGE_PTE)) = ++ return (pte_raw(pte) & cpu_to_be64(_PAGE_INVALID | _PAGE_PTE)) == + cpu_to_be64(_PAGE_INVALID | _PAGE_PTE); } diff --git a/a/content_digest b/N1/content_digest index f1d71b3..f6a4b01 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,17 +1,16 @@ "ref\020200420124434.47330-1-aneesh.kumar@linux.ibm.com\0" "From\0Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>\0" "Subject\0[PATCH v3 03/22] powerpc/mm/hash64: use _PAGE_PTE when checking for pte_present\0" - "Date\0Mon, 20 Apr 2020 12:56:15 +0000\0" + "Date\0Mon, 20 Apr 2020 18:14:15 +0530\0" "To\0linuxppc-dev@lists.ozlabs.org" mpe@ellerman.id.au linux-mm@kvack.org linux-kernel@vger.kernel.org " kvm-ppc@vger.kernel.org\0" - "Cc\0npiggin@gmail.com" - paulus@ozlabs.org - leonardo@linux.ibm.com - kirill@shutemov.name - " Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>\0" + "Cc\0leonardo@linux.ibm.com" + Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> + npiggin@gmail.com + " kirill@shutemov.name\0" "\00:1\0" "b\0" "This makes the pte_present check stricter by checking for additional _PAGE_PTE\n" @@ -40,7 +39,7 @@ " \n" "+static inline bool pte_hw_valid(pte_t pte)\n" "+{\n" - "+\treturn (pte_raw(pte) & cpu_to_be64(_PAGE_PRESENT | _PAGE_PTE)) =\n" + "+\treturn (pte_raw(pte) & cpu_to_be64(_PAGE_PRESENT | _PAGE_PTE)) ==\n" "+\t\tcpu_to_be64(_PAGE_PRESENT | _PAGE_PTE);\n" "+}\n" "+\n" @@ -59,7 +58,7 @@ "-\treturn !!(pte_raw(pte) & cpu_to_be64(_PAGE_PRESENT));\n" "+\tif (pte_hw_valid(pte))\n" "+\t\treturn true;\n" - "+\treturn (pte_raw(pte) & cpu_to_be64(_PAGE_INVALID | _PAGE_PTE)) =\n" + "+\treturn (pte_raw(pte) & cpu_to_be64(_PAGE_INVALID | _PAGE_PTE)) ==\n" "+\t\tcpu_to_be64(_PAGE_INVALID | _PAGE_PTE);\n" " }\n" " \n" @@ -89,4 +88,4 @@ "-- \n" 2.25.3 -e2af7a2955a72b895838a365a34bcd289fd14892d3d3690cfc02789c4e4f45d8 +7176f3347f15f165ca4b64ee467dfa500f3dfa82d9b944b317ad87c7a2292790
diff --git a/a/1.txt b/N2/1.txt index 7ddd068..1559b56 100644 --- a/a/1.txt +++ b/N2/1.txt @@ -24,7 +24,7 @@ index 368b136517e0..03521a8b0292 100644 +static inline bool pte_hw_valid(pte_t pte) +{ -+ return (pte_raw(pte) & cpu_to_be64(_PAGE_PRESENT | _PAGE_PTE)) = ++ return (pte_raw(pte) & cpu_to_be64(_PAGE_PRESENT | _PAGE_PTE)) == + cpu_to_be64(_PAGE_PRESENT | _PAGE_PTE); +} + @@ -43,7 +43,7 @@ index 368b136517e0..03521a8b0292 100644 - return !!(pte_raw(pte) & cpu_to_be64(_PAGE_PRESENT)); + if (pte_hw_valid(pte)) + return true; -+ return (pte_raw(pte) & cpu_to_be64(_PAGE_INVALID | _PAGE_PTE)) = ++ return (pte_raw(pte) & cpu_to_be64(_PAGE_INVALID | _PAGE_PTE)) == + cpu_to_be64(_PAGE_INVALID | _PAGE_PTE); } diff --git a/a/content_digest b/N2/content_digest index f1d71b3..1cdc945 100644 --- a/a/content_digest +++ b/N2/content_digest @@ -1,7 +1,7 @@ "ref\020200420124434.47330-1-aneesh.kumar@linux.ibm.com\0" "From\0Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>\0" "Subject\0[PATCH v3 03/22] powerpc/mm/hash64: use _PAGE_PTE when checking for pte_present\0" - "Date\0Mon, 20 Apr 2020 12:56:15 +0000\0" + "Date\0Mon, 20 Apr 2020 18:14:15 +0530\0" "To\0linuxppc-dev@lists.ozlabs.org" mpe@ellerman.id.au linux-mm@kvack.org @@ -40,7 +40,7 @@ " \n" "+static inline bool pte_hw_valid(pte_t pte)\n" "+{\n" - "+\treturn (pte_raw(pte) & cpu_to_be64(_PAGE_PRESENT | _PAGE_PTE)) =\n" + "+\treturn (pte_raw(pte) & cpu_to_be64(_PAGE_PRESENT | _PAGE_PTE)) ==\n" "+\t\tcpu_to_be64(_PAGE_PRESENT | _PAGE_PTE);\n" "+}\n" "+\n" @@ -59,7 +59,7 @@ "-\treturn !!(pte_raw(pte) & cpu_to_be64(_PAGE_PRESENT));\n" "+\tif (pte_hw_valid(pte))\n" "+\t\treturn true;\n" - "+\treturn (pte_raw(pte) & cpu_to_be64(_PAGE_INVALID | _PAGE_PTE)) =\n" + "+\treturn (pte_raw(pte) & cpu_to_be64(_PAGE_INVALID | _PAGE_PTE)) ==\n" "+\t\tcpu_to_be64(_PAGE_INVALID | _PAGE_PTE);\n" " }\n" " \n" @@ -89,4 +89,4 @@ "-- \n" 2.25.3 -e2af7a2955a72b895838a365a34bcd289fd14892d3d3690cfc02789c4e4f45d8 +900c70fc7985384f792c0fc57d58ad055faee4ceb6c7b5e9e5146d7133c4f44f
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.