aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/alloc.c
diff options
context:
space:
mode:
authorJoel Becker <joel.becker@oracle.com>2009-02-12 22:43:57 -0500
committerJoel Becker <joel.becker@oracle.com>2009-09-04 19:07:58 -0400
commit09106bae05c3350e8d0ef0ede90b1c3da4bda2f8 (patch)
tree73e216e39897e9519b0e30843cddbd20074fcdca /fs/ocfs2/alloc.c
parent1bbf0b8d606645c7596ee641acfbf042765c9719 (diff)
ocfs2: ocfs2_update_edge_lengths() doesn't need struct inode.
Pass in the extent tree, which is all we need. Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/alloc.c')
-rw-r--r--fs/ocfs2/alloc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/ocfs2/alloc.c b/fs/ocfs2/alloc.c
index 93f02a11302..8efcface686 100644
--- a/fs/ocfs2/alloc.c
+++ b/fs/ocfs2/alloc.c
@@ -2465,7 +2465,8 @@ out_ret_path:
2465 return ret; 2465 return ret;
2466} 2466}
2467 2467
2468static int ocfs2_update_edge_lengths(struct inode *inode, handle_t *handle, 2468static int ocfs2_update_edge_lengths(handle_t *handle,
2469 struct ocfs2_extent_tree *et,
2469 int subtree_index, struct ocfs2_path *path) 2470 int subtree_index, struct ocfs2_path *path)
2470{ 2471{
2471 int i, idx, ret; 2472 int i, idx, ret;
@@ -2490,7 +2491,7 @@ static int ocfs2_update_edge_lengths(struct inode *inode, handle_t *handle,
2490 goto out; 2491 goto out;
2491 } 2492 }
2492 2493
2493 ret = ocfs2_journal_access_path(INODE_CACHE(inode), handle, path); 2494 ret = ocfs2_journal_access_path(et->et_ci, handle, path);
2494 if (ret) { 2495 if (ret) {
2495 mlog_errno(ret); 2496 mlog_errno(ret);
2496 goto out; 2497 goto out;
@@ -2732,7 +2733,7 @@ static int ocfs2_rotate_subtree_left(struct inode *inode, handle_t *handle,
2732 if (del_right_subtree) { 2733 if (del_right_subtree) {
2733 ocfs2_unlink_subtree(handle, et, left_path, right_path, 2734 ocfs2_unlink_subtree(handle, et, left_path, right_path,
2734 subtree_index, dealloc); 2735 subtree_index, dealloc);
2735 ret = ocfs2_update_edge_lengths(inode, handle, subtree_index, 2736 ret = ocfs2_update_edge_lengths(handle, et, subtree_index,
2736 left_path); 2737 left_path);
2737 if (ret) { 2738 if (ret) {
2738 mlog_errno(ret); 2739 mlog_errno(ret);
@@ -3055,7 +3056,7 @@ static int ocfs2_remove_rightmost_path(struct inode *inode, handle_t *handle,
3055 3056
3056 ocfs2_unlink_subtree(handle, et, left_path, path, 3057 ocfs2_unlink_subtree(handle, et, left_path, path,
3057 subtree_index, dealloc); 3058 subtree_index, dealloc);
3058 ret = ocfs2_update_edge_lengths(inode, handle, subtree_index, 3059 ret = ocfs2_update_edge_lengths(handle, et, subtree_index,
3059 left_path); 3060 left_path);
3060 if (ret) { 3061 if (ret) {
3061 mlog_errno(ret); 3062 mlog_errno(ret);