aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_aops.c
diff options
context:
space:
mode:
authorLukas Czerner <lczerner@redhat.com>2013-05-21 23:58:01 -0400
committerTheodore Ts'o <tytso@mit.edu>2013-05-21 23:58:01 -0400
commit34097dfe88503ca2d0dbca3646c5afb331d1ac99 (patch)
tree1b08c625cc82f406d01eace77d8757e8b5d62a9e /fs/xfs/xfs_aops.c
parentd8c8900ac113d2b2b3d382acda198b4ae29b1b51 (diff)
xfs: use ->invalidatepage() length argument
->invalidatepage() aop now accepts range to invalidate so we can make use of it in xfs_vm_invalidatepage() Signed-off-by: Lukas Czerner <lczerner@redhat.com> Acked-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Ben Myers <bpm@sgi.com> Cc: xfs@oss.sgi.com
Diffstat (limited to 'fs/xfs/xfs_aops.c')
-rw-r--r--fs/xfs/xfs_aops.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c
index a8f63f38b8f7..4ef1340d98f2 100644
--- a/fs/xfs/xfs_aops.c
+++ b/fs/xfs/xfs_aops.c
@@ -827,8 +827,9 @@ xfs_vm_invalidatepage(
827 unsigned int offset, 827 unsigned int offset,
828 unsigned int length) 828 unsigned int length)
829{ 829{
830 trace_xfs_invalidatepage(page->mapping->host, page, offset); 830 trace_xfs_invalidatepage(page->mapping->host, page, offset,
831 block_invalidatepage(page, offset, PAGE_CACHE_SIZE - offset); 831 length);
832 block_invalidatepage(page, offset, length);
832} 833}
833 834
834/* 835/*
@@ -922,7 +923,7 @@ xfs_vm_writepage(
922 int count = 0; 923 int count = 0;
923 int nonblocking = 0; 924 int nonblocking = 0;
924 925
925 trace_xfs_writepage(inode, page, 0); 926 trace_xfs_writepage(inode, page, 0, 0);
926 927
927 ASSERT(page_has_buffers(page)); 928 ASSERT(page_has_buffers(page));
928 929
@@ -1153,7 +1154,7 @@ xfs_vm_releasepage(
1153{ 1154{
1154 int delalloc, unwritten; 1155 int delalloc, unwritten;
1155 1156
1156 trace_xfs_releasepage(page->mapping->host, page, 0); 1157 trace_xfs_releasepage(page->mapping->host, page, 0, 0);
1157 1158
1158 xfs_count_page_state(page, &delalloc, &unwritten); 1159 xfs_count_page_state(page, &delalloc, &unwritten);
1159 1160