[PATCH openEuler-1.0-LTS 044/109] swap: fix swapfile read/write offset