From: Mark Fasheh Date: Wed, 12 Apr 2006 21:24:05 +0000 (-0700) Subject: ocfs2: Don't populate uptodate cache in ocfs2_force_read_journal() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dd4a2c2bfe159cc39e9672e875c8314563699764;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git ocfs2: Don't populate uptodate cache in ocfs2_force_read_journal() This greatly reduces the amount of memory useded during recovery. Signed-off-by: Mark Fasheh --- diff --git a/fs/ocfs2/journal.c b/fs/ocfs2/journal.c index 6a610ae5358..c53d505cbd4 100644 --- a/fs/ocfs2/journal.c +++ b/fs/ocfs2/journal.c @@ -870,9 +870,11 @@ static int ocfs2_force_read_journal(struct inode *inode) if (p_blocks > CONCURRENT_JOURNAL_FILL) p_blocks = CONCURRENT_JOURNAL_FILL; + /* We are reading journal data which should not + * be put in the uptodate cache */ status = ocfs2_read_blocks(OCFS2_SB(inode->i_sb), p_blkno, p_blocks, bhs, 0, - inode); + NULL); if (status < 0) { mlog_errno(status); goto bail;