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