diff options
Diffstat (limited to 'fs/ocfs2/buffer_head_io.h')
| -rw-r--r-- | fs/ocfs2/buffer_head_io.h | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/fs/ocfs2/buffer_head_io.h b/fs/ocfs2/buffer_head_io.h index c2e78614c3e..75e1dcb1ade 100644 --- a/fs/ocfs2/buffer_head_io.h +++ b/fs/ocfs2/buffer_head_io.h | |||
| @@ -31,31 +31,29 @@ | |||
| 31 | void ocfs2_end_buffer_io_sync(struct buffer_head *bh, | 31 | void ocfs2_end_buffer_io_sync(struct buffer_head *bh, |
| 32 | int uptodate); | 32 | int uptodate); |
| 33 | 33 | ||
| 34 | static inline int ocfs2_read_block(struct ocfs2_super *osb, | 34 | static inline int ocfs2_read_block(struct inode *inode, |
| 35 | u64 off, | 35 | u64 off, |
| 36 | struct buffer_head **bh, | 36 | struct buffer_head **bh); |
| 37 | int flags, | ||
| 38 | struct inode *inode); | ||
| 39 | 37 | ||
| 40 | int ocfs2_write_block(struct ocfs2_super *osb, | 38 | int ocfs2_write_block(struct ocfs2_super *osb, |
| 41 | struct buffer_head *bh, | 39 | struct buffer_head *bh, |
| 42 | struct inode *inode); | 40 | struct inode *inode); |
| 43 | int ocfs2_read_blocks(struct ocfs2_super *osb, | 41 | int ocfs2_read_blocks(struct inode *inode, |
| 44 | u64 block, | 42 | u64 block, |
| 45 | int nr, | 43 | int nr, |
| 46 | struct buffer_head *bhs[], | 44 | struct buffer_head *bhs[], |
| 47 | int flags, | 45 | int flags); |
| 48 | struct inode *inode); | 46 | int ocfs2_read_blocks_sync(struct ocfs2_super *osb, u64 block, |
| 47 | unsigned int nr, struct buffer_head *bhs[]); | ||
| 49 | 48 | ||
| 50 | int ocfs2_write_super_or_backup(struct ocfs2_super *osb, | 49 | int ocfs2_write_super_or_backup(struct ocfs2_super *osb, |
| 51 | struct buffer_head *bh); | 50 | struct buffer_head *bh); |
| 52 | 51 | ||
| 53 | #define OCFS2_BH_CACHED 1 | 52 | #define OCFS2_BH_IGNORE_CACHE 1 |
| 54 | #define OCFS2_BH_READAHEAD 8 | 53 | #define OCFS2_BH_READAHEAD 8 |
| 55 | 54 | ||
| 56 | static inline int ocfs2_read_block(struct ocfs2_super * osb, u64 off, | 55 | static inline int ocfs2_read_block(struct inode *inode, u64 off, |
| 57 | struct buffer_head **bh, int flags, | 56 | struct buffer_head **bh) |
| 58 | struct inode *inode) | ||
| 59 | { | 57 | { |
| 60 | int status = 0; | 58 | int status = 0; |
| 61 | 59 | ||
| @@ -65,8 +63,7 @@ static inline int ocfs2_read_block(struct ocfs2_super * osb, u64 off, | |||
| 65 | goto bail; | 63 | goto bail; |
| 66 | } | 64 | } |
| 67 | 65 | ||
| 68 | status = ocfs2_read_blocks(osb, off, 1, bh, | 66 | status = ocfs2_read_blocks(inode, off, 1, bh, 0); |
| 69 | flags, inode); | ||
| 70 | 67 | ||
| 71 | bail: | 68 | bail: |
| 72 | return status; | 69 | return status; |
