Skip to content

Commit

Permalink
ocfs2: Don't populate uptodate cache in ocfs2_force_read_journal()
Browse files Browse the repository at this point in the history
This greatly reduces the amount of memory useded during recovery.

Signed-off-by: Mark Fasheh <[email protected]>
  • Loading branch information
Mark Fasheh committed May 17, 2006
1 parent c4374f8 commit dd4a2c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/ocfs2/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dd4a2c2

Please sign in to comment.