On Mon, 2016-05-30 at 14:12 +0530, Aneesh Kumar K.V wrote: > /* Encode and de-code a swap entry */ > @@ -516,10 +533,12 @@ static inline pte_t pte_swp_mksoft_dirty(pte_t > pte) > { > return __pte(pte_val(pte) | _PAGE_SWP_SOFT_DIRTY); > }
These kind of setters (and mkspecial etc...) could also just OR the byteswapped constant to the raw PTE.. Cheers, Ben. _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev