aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/gfs2/ops_address.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/ops_address.c b/fs/gfs2/ops_address.c
index 005c2522a879..afcc12a00a3c 100644
--- a/fs/gfs2/ops_address.c
+++ b/fs/gfs2/ops_address.c
@@ -126,7 +126,7 @@ static int gfs2_writepage(struct page *page, struct writeback_control *wbc)
126 126
127 /* Is the page fully outside i_size? (truncate in progress) */ 127 /* Is the page fully outside i_size? (truncate in progress) */
128 offset = i_size & (PAGE_CACHE_SIZE-1); 128 offset = i_size & (PAGE_CACHE_SIZE-1);
129 if (page->index >= end_index+1 || !offset) { 129 if (page->index > end_index || (page->index == end_index && !offset)) {
130 page->mapping->a_ops->invalidatepage(page, 0); 130 page->mapping->a_ops->invalidatepage(page, 0);
131 unlock_page(page); 131 unlock_page(page);
132 return 0; /* don't care */ 132 return 0; /* don't care */