diff options
author | Bob Peterson <rpeterso@redhat.com> | 2007-12-10 15:13:27 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2008-01-25 03:08:25 -0500 |
commit | e9e1ef2b6ee401d7c1e1eb38052857b4b206d172 (patch) | |
tree | 68dff93cf4058eb06b162d800f08ff7752cd1a55 /fs/gfs2/ops_address.h | |
parent | 2066b58b0a038d7aedd24133677efb8856cac3a1 (diff) |
[GFS2] Remove function gfs2_get_block
This patch is just a cleanup. Function gfs2_get_block() just calls
function gfs2_block_map reversing the last two parameters. By
reversing the parameters, gfs2_block_map() may be called directly
and function gfs2_get_block may be eliminated altogether.
Since this function is done for every block operation,
this streamlines the code and makes it a little bit more efficient.
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/ops_address.h')
-rw-r--r-- | fs/gfs2/ops_address.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/gfs2/ops_address.h b/fs/gfs2/ops_address.h index d3b76d0cdc81..5da21285bba4 100644 --- a/fs/gfs2/ops_address.h +++ b/fs/gfs2/ops_address.h | |||
@@ -14,8 +14,6 @@ | |||
14 | #include <linux/buffer_head.h> | 14 | #include <linux/buffer_head.h> |
15 | #include <linux/mm.h> | 15 | #include <linux/mm.h> |
16 | 16 | ||
17 | extern int gfs2_get_block(struct inode *inode, sector_t lblock, | ||
18 | struct buffer_head *bh_result, int create); | ||
19 | extern int gfs2_releasepage(struct page *page, gfp_t gfp_mask); | 17 | extern int gfs2_releasepage(struct page *page, gfp_t gfp_mask); |
20 | extern int gfs2_internal_read(struct gfs2_inode *ip, | 18 | extern int gfs2_internal_read(struct gfs2_inode *ip, |
21 | struct file_ra_state *ra_state, | 19 | struct file_ra_state *ra_state, |