fix the regression from "direct-io: Fix negative return from dio read beyond eof"