diff options
author | Joel Becker <joel.becker@oracle.com> | 2008-10-09 20:20:29 -0400 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2008-10-14 14:29:10 -0400 |
commit | da1e90985a0e767e44397c9db0937e236033fa58 (patch) | |
tree | 88d16dd378bf1b180d345a87de95316546af348a /fs/ocfs2/journal.c | |
parent | 936b8834366ec05f2a6993f73afd8348cac9718e (diff) |
ocfs2: Separate out sync reads from ocfs2_read_blocks()
The ocfs2_read_blocks() function currently handles sync reads, cached,
reads, and sometimes cached reads. We're going to add some
functionality to it, so first we should simplify it. The uncached,
synchronous reads are much easer to handle as a separate function, so we
instroduce ocfs2_read_blocks_sync().
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/journal.c')
-rw-r--r-- | fs/ocfs2/journal.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/ocfs2/journal.c b/fs/ocfs2/journal.c index 562ba652593e..10c51b562be8 100644 --- a/fs/ocfs2/journal.c +++ b/fs/ocfs2/journal.c | |||
@@ -850,9 +850,8 @@ static int ocfs2_force_read_journal(struct inode *inode) | |||
850 | 850 | ||
851 | /* We are reading journal data which should not | 851 | /* We are reading journal data which should not |
852 | * be put in the uptodate cache */ | 852 | * be put in the uptodate cache */ |
853 | status = ocfs2_read_blocks(OCFS2_SB(inode->i_sb), | 853 | status = ocfs2_read_blocks_sync(OCFS2_SB(inode->i_sb), |
854 | p_blkno, p_blocks, bhs, 0, | 854 | p_blkno, p_blocks, bhs); |
855 | NULL); | ||
856 | if (status < 0) { | 855 | if (status < 0) { |
857 | mlog_errno(status); | 856 | mlog_errno(status); |
858 | goto bail; | 857 | goto bail; |