diff options
author | Joel Becker <joel.becker@oracle.com> | 2009-02-13 03:34:15 -0800 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2009-09-04 16:08:09 -0700 |
commit | cbee7e1a6a1a2a3d6eda1f76ffc38a3ed3eeb6cc (patch) | |
tree | 438ac4917675c27ecd3dce694ae3affd7ebf6c91 /fs/ocfs2/xattr.c | |
parent | cc79d8c19e9d39446525a1026f1a21761f5d3cd2 (diff) | |
download | op-kernel-dev-cbee7e1a6a1a2a3d6eda1f76ffc38a3ed3eeb6cc.zip op-kernel-dev-cbee7e1a6a1a2a3d6eda1f76ffc38a3ed3eeb6cc.tar.gz |
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.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/ocfs2/xattr.c b/fs/ocfs2/xattr.c index 38db12a..fdd02c4 100644 --- a/fs/ocfs2/xattr.c +++ b/fs/ocfs2/xattr.c @@ -597,7 +597,6 @@ static int ocfs2_xattr_extend_allocation(struct inode *inode, int status = 0; handle_t *handle = ctxt->handle; enum ocfs2_alloc_restarted why; - struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); u32 prev_clusters, logical_start = le32_to_cpu(vb->vb_xv->xr_clusters); struct ocfs2_extent_tree et; @@ -613,13 +612,11 @@ static int ocfs2_xattr_extend_allocation(struct inode *inode, } prev_clusters = le32_to_cpu(vb->vb_xv->xr_clusters); - status = ocfs2_add_clusters_in_btree(osb, - inode, + status = ocfs2_add_clusters_in_btree(handle, + &et, &logical_start, clusters_to_add, 0, - &et, - handle, ctxt->data_ac, ctxt->meta_ac, &why); |