aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/xattr.c
diff options
context:
space:
mode:
authorJoel Becker <joel.becker@oracle.com>2009-02-13 06:34:15 -0500
committerJoel Becker <joel.becker@oracle.com>2009-09-04 19:08:09 -0400
commitcbee7e1a6a1a2a3d6eda1f76ffc38a3ed3eeb6cc (patch)
tree438ac4917675c27ecd3dce694ae3affd7ebf6c91 /fs/ocfs2/xattr.c
parentcc79d8c19e9d39446525a1026f1a21761f5d3cd2 (diff)
ocfs2: ocfs2_add_clusters_in_btree() no longer needs struct inode.
One more function that doesn't need a struct inode to pass to its children. Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/xattr.c')
-rw-r--r--fs/ocfs2/xattr.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/ocfs2/xattr.c b/fs/ocfs2/xattr.c
index 38db12ab848f..fdd02c43fa14 100644
--- a/fs/ocfs2/xattr.c
+++ b/fs/ocfs2/xattr.c
@@ -597,7 +597,6 @@ static int ocfs2_xattr_extend_allocation(struct inode *inode,
597 int status = 0; 597 int status = 0;
598 handle_t *handle = ctxt->handle; 598 handle_t *handle = ctxt->handle;
599 enum ocfs2_alloc_restarted why; 599 enum ocfs2_alloc_restarted why;
600 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
601 u32 prev_clusters, logical_start = le32_to_cpu(vb->vb_xv->xr_clusters); 600 u32 prev_clusters, logical_start = le32_to_cpu(vb->vb_xv->xr_clusters);
602 struct ocfs2_extent_tree et; 601 struct ocfs2_extent_tree et;
603 602
@@ -613,13 +612,11 @@ static int ocfs2_xattr_extend_allocation(struct inode *inode,
613 } 612 }
614 613
615 prev_clusters = le32_to_cpu(vb->vb_xv->xr_clusters); 614 prev_clusters = le32_to_cpu(vb->vb_xv->xr_clusters);
616 status = ocfs2_add_clusters_in_btree(osb, 615 status = ocfs2_add_clusters_in_btree(handle,
617 inode, 616 &et,
618 &logical_start, 617 &logical_start,
619 clusters_to_add, 618 clusters_to_add,
620 0, 619 0,
621 &et,
622 handle,
623 ctxt->data_ac, 620 ctxt->data_ac,
624 ctxt->meta_ac, 621 ctxt->meta_ac,
625 &why); 622 &why);