ocfs2: use ->invalidatepage() length argument
authorLukas Czerner <lczerner@redhat.com>
Wed, 22 May 2013 03:58:46 +0000 (23:58 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 22 May 2013 03:58:46 +0000 (23:58 -0400)
->invalidatepage() aop now accepts range to invalidate so we can make
use of it in ocfs2_invalidatepage().

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Acked-by: Joel Becker <jlbec@evilplan.org>
fs/ocfs2/aops.c

index 7c47755..79736a2 100644 (file)
@@ -608,8 +608,7 @@ static void ocfs2_invalidatepage(struct page *page, unsigned int offset,
 {
        journal_t *journal = OCFS2_SB(page->mapping->host->i_sb)->journal->j_journal;
 
-       jbd2_journal_invalidatepage(journal, page, offset,
-                                   PAGE_CACHE_SIZE - offset);
+       jbd2_journal_invalidatepage(journal, page, offset, length);
 }
 
 static int ocfs2_releasepage(struct page *page, gfp_t wait)