add patch better-estimate-credits-needed-for-ext4_da_writepages
[ext4-patch-queue.git] / ocfs2-use-invalidatepage-length-argument
blob9780a6d8dc97637c851956d6b77de03718a5452c
1 ocfs2: use ->invalidatepage() length argument
3 From: Lukas Czerner <lczerner@redhat.com>
5 ->invalidatepage() aop now accepts range to invalidate so we can make
6 use of it in ocfs2_invalidatepage().
8 Signed-off-by: Lukas Czerner <lczerner@redhat.com>
9 Reviewed-by: Jan Kara <jack@suse.cz>
10 Acked-by: Joel Becker <jlbec@evilplan.org>
11 ---
12  fs/ocfs2/aops.c |    3 +--
13  1 files changed, 1 insertions(+), 2 deletions(-)
15 diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c
16 index 7c47755..79736a2 100644
17 --- a/fs/ocfs2/aops.c
18 +++ b/fs/ocfs2/aops.c
19 @@ -608,8 +608,7 @@ static void ocfs2_invalidatepage(struct page *page, unsigned int offset,
20  {
21         journal_t *journal = OCFS2_SB(page->mapping->host->i_sb)->journal->j_journal;
23 -       jbd2_journal_invalidatepage(journal, page, offset,
24 -                                   PAGE_CACHE_SIZE - offset);
25 +       jbd2_journal_invalidatepage(journal, page, offset, length);
26  }
28  static int ocfs2_releasepage(struct page *page, gfp_t wait)
29 -- 
30 1.7.7.6
33 To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
34 the body of a message to majordomo@vger.kernel.org
35 More majordomo info at  http://vger.kernel.org/majordomo-info.html
36 Please read the FAQ at  http://www.tux.org/lkml/