Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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;
		}
	}