[PATCH 6.17 173/247] LoongArch: Let {pte,pmd}_modify() record the status of _PAGE_DIRTY