mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
34097dfe88
commit
e5f8d30d68
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
journal_t *journal = OCFS2_SB(page->mapping->host->i_sb)->journal->j_journal;
|
||||||
|
|
||||||
jbd2_journal_invalidatepage(journal, page, offset,
|
jbd2_journal_invalidatepage(journal, page, offset, length);
|
||||||
PAGE_CACHE_SIZE - offset);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ocfs2_releasepage(struct page *page, gfp_t wait)
|
static int ocfs2_releasepage(struct page *page, gfp_t wait)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue