diff options
author | Joel Becker <joel.becker@oracle.com> | 2009-02-13 02:49:26 +0100 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2009-09-05 01:07:52 +0200 |
commit | 3d03a305ded8057155bd3c801e64ffef9f534827 (patch) | |
tree | 4f220711f42c1abbd80a9fe8c2b6ee47e846a587 /fs/ocfs2/extent_map.c | |
parent | ocfs2: Store the ocfs2_caching_info on ocfs2_extent_tree. (diff) | |
download | linux-3d03a305ded8057155bd3c801e64ffef9f534827.tar.xz linux-3d03a305ded8057155bd3c801e64ffef9f534827.zip |
ocfs2: Pass ocfs2_caching_info to ocfs2_read_extent_block().
extent blocks belong to btrees on more than just inodes, so we want to
pass the ocfs2_caching_info structure directly to
ocfs2_read_extent_block(). A number of places in alloc.c can now drop
struct inode from their argument list.
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/extent_map.c')
-rw-r--r-- | fs/ocfs2/extent_map.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ocfs2/extent_map.c b/fs/ocfs2/extent_map.c index dbd8a16d5125..a5dc13e6fe76 100644 --- a/fs/ocfs2/extent_map.c +++ b/fs/ocfs2/extent_map.c @@ -293,7 +293,7 @@ static int ocfs2_last_eb_is_empty(struct inode *inode, struct ocfs2_extent_block *eb; struct ocfs2_extent_list *el; - ret = ocfs2_read_extent_block(inode, last_eb_blk, &eb_bh); + ret = ocfs2_read_extent_block(INODE_CACHE(inode), last_eb_blk, &eb_bh); if (ret) { mlog_errno(ret); goto out; @@ -375,7 +375,7 @@ static int ocfs2_figure_hole_clusters(struct inode *inode, if (le64_to_cpu(eb->h_next_leaf_blk) == 0ULL) goto no_more_extents; - ret = ocfs2_read_extent_block(inode, + ret = ocfs2_read_extent_block(INODE_CACHE(inode), le64_to_cpu(eb->h_next_leaf_blk), &next_eb_bh); if (ret) { |