aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/xfs/linux-2.6/xfs_aops.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/xfs/linux-2.6/xfs_aops.c b/fs/xfs/linux-2.6/xfs_aops.c
index 1f38b528f0bd..c6108971b4e6 100644
--- a/fs/xfs/linux-2.6/xfs_aops.c
+++ b/fs/xfs/linux-2.6/xfs_aops.c
@@ -748,8 +748,9 @@ xfs_page_state_convert(
748 if (page->index >= end_index) { 748 if (page->index >= end_index) {
749 if ((page->index >= end_index + 1) || 749 if ((page->index >= end_index + 1) ||
750 !(i_size_read(inode) & (PAGE_CACHE_SIZE - 1))) { 750 !(i_size_read(inode) & (PAGE_CACHE_SIZE - 1))) {
751 err = -EIO; 751 if (startio)
752 goto error; 752 unlock_page(page);
753 return 0;
753 } 754 }
754 } 755 }
755 756