Skip to content

Commit

Permalink
[XFS] Ensure fsync does not incorrectly return EIO for pages beyond EOF.
Browse files Browse the repository at this point in the history
SGI-PV: 944819
SGI-Modid: xfs-linux:xfs-kern:24236a

Signed-off-by: Nathan Scott <nathans@sgi.com>
  • Loading branch information
Nathan Scott committed Nov 2, 2005
1 parent a749ee8 commit 19d5bcf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fs/xfs/linux-2.6/xfs_aops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 19d5bcf

Please sign in to comment.