aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_aops.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_aops.c')
-rw-r--r--fs/xfs/xfs_aops.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c
index 2b2691b73428..a8f63f38b8f7 100644
--- a/fs/xfs/xfs_aops.c
+++ b/fs/xfs/xfs_aops.c
@@ -824,10 +824,11 @@ xfs_cluster_write(
824STATIC void 824STATIC void
825xfs_vm_invalidatepage( 825xfs_vm_invalidatepage(
826 struct page *page, 826 struct page *page,
827 unsigned long offset) 827 unsigned int offset,
828 unsigned int length)
828{ 829{
829 trace_xfs_invalidatepage(page->mapping->host, page, offset); 830 trace_xfs_invalidatepage(page->mapping->host, page, offset);
830 block_invalidatepage(page, offset); 831 block_invalidatepage(page, offset, PAGE_CACHE_SIZE - offset);
831} 832}
832 833
833/* 834/*
@@ -891,7 +892,7 @@ next_buffer:
891 892
892 xfs_iunlock(ip, XFS_ILOCK_EXCL); 893 xfs_iunlock(ip, XFS_ILOCK_EXCL);
893out_invalidate: 894out_invalidate:
894 xfs_vm_invalidatepage(page, 0); 895 xfs_vm_invalidatepage(page, 0, PAGE_CACHE_SIZE);
895 return; 896 return;
896} 897}
897 898