ocfs2: Don't populate uptodate cache in ocfs2_force_read_journal()
authorMark Fasheh <mark.fasheh@oracle.com>
Wed, 12 Apr 2006 21:24:05 +0000 (14:24 -0700)
committerMark Fasheh <mark.fasheh@oracle.com>
Wed, 17 May 2006 21:38:48 +0000 (14:38 -0700)
This greatly reduces the amount of memory useded during recovery.

Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/journal.c

index 6a610ae5358394710688e518d022f25e85a51b41..c53d505cbd473b2233e6a56fe2227a33b03dc181 100644 (file)
@@ -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;