Commit 19d5bcf3 authored by Nathan Scott's avatar Nathan Scott

[XFS] Ensure fsync does not incorrectly return EIO for pages beyond EOF.

SGI-PV: 944819
SGI-Modid: xfs-linux:xfs-kern:24236a
Signed-off-by: default avatarNathan Scott <nathans@sgi.com>
parent a749ee86
......@@ -748,8 +748,9 @@ xfs_page_state_convert(
if (page->index >= end_index) {
if ((page->index >= end_index + 1) ||
!(i_size_read(inode) & (PAGE_CACHE_SIZE - 1))) {
err = -EIO;
goto error;
if (startio)
unlock_page(page);
return 0;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment