[PATCH OLK-6.6 v2 21/27] mm/shmem: fix input and output inconsistencies