Skip to content

Commit

Permalink
ocfs2: use ->invalidatepage() length argument
Browse files Browse the repository at this point in the history
->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>
  • Loading branch information
Lukas Czerner authored and Theodore Ts'o committed May 22, 2013
1 parent 34097df commit e5f8d30
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/ocfs2/aops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e5f8d30

Please sign in to comment.