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-Tag: v2.6.17-rc5~106^2~4 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=dd4a2c2bfe159cc39e9672e875c8314563699764;p=linux-2.6-block.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 6a610ae53583..c53d505cbd47 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;