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/buffer_head_io.h | |
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/buffer_head_io.h')
-rw-r--r-- | fs/ocfs2/buffer_head_io.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ocfs2/buffer_head_io.h b/fs/ocfs2/buffer_head_io.h index c2e78614c3e5..71646b470ac8 100644 --- a/fs/ocfs2/buffer_head_io.h +++ b/fs/ocfs2/buffer_head_io.h | |||
@@ -46,6 +46,8 @@ int ocfs2_read_blocks(struct ocfs2_super *osb, | |||
46 | struct buffer_head *bhs[], | 46 | struct buffer_head *bhs[], |
47 | int flags, | 47 | int flags, |
48 | struct inode *inode); | 48 | struct inode *inode); |
49 | int ocfs2_read_blocks_sync(struct ocfs2_super *osb, u64 block, | ||
50 | unsigned int nr, struct buffer_head *bhs[]); | ||
49 | 51 | ||
50 | int ocfs2_write_super_or_backup(struct ocfs2_super *osb, | 52 | int ocfs2_write_super_or_backup(struct ocfs2_super *osb, |
51 | struct buffer_head *bh); | 53 | struct buffer_head *bh); |