diff options
author | Lukas Czerner <lczerner@redhat.com> | 2013-05-21 23:58:46 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-05-21 23:58:46 -0400 |
commit | e5f8d30d6827633c9ac084143cbf8fffc1844da5 (patch) | |
tree | 4f9c7e59d046165929ae58da1e1695858cb17cda /fs/ocfs2/aops.c | |
parent | 34097dfe88503ca2d0dbca3646c5afb331d1ac99 (diff) |
ocfs2: use ->invalidatepage() length argument
->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>
Diffstat (limited to 'fs/ocfs2/aops.c')
-rw-r--r-- | fs/ocfs2/aops.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c index 7c477559f38e..79736a28d84f 100644 --- a/fs/ocfs2/aops.c +++ b/fs/ocfs2/aops.c | |||
@@ -608,8 +608,7 @@ static void ocfs2_invalidatepage(struct page *page, unsigned int offset, | |||
608 | { | 608 | { |
609 | journal_t *journal = OCFS2_SB(page->mapping->host->i_sb)->journal->j_journal; | 609 | journal_t *journal = OCFS2_SB(page->mapping->host->i_sb)->journal->j_journal; |
610 | 610 | ||
611 | jbd2_journal_invalidatepage(journal, page, offset, | 611 | jbd2_journal_invalidatepage(journal, page, offset, length); |
612 | PAGE_CACHE_SIZE - offset); | ||
613 | } | 612 | } |
614 | 613 | ||
615 | static int ocfs2_releasepage(struct page *page, gfp_t wait) | 614 | static int ocfs2_releasepage(struct page *page, gfp_t wait) |