提交 6f8950cd 编写于 作者: E Eric Sandeen 提交者: Dave Chinner

xfs: remove unused length arg from alloc_block ops

Signed-off-by: NEric Sandeen <sandeen@redhat.com>
Reviewed-by: NDave Chinner <dchinner@redhat.com>
Signed-off-by: NDave Chinner <david@fromorbit.com>
上级 6ea94bb5
...@@ -70,7 +70,6 @@ xfs_allocbt_alloc_block( ...@@ -70,7 +70,6 @@ xfs_allocbt_alloc_block(
struct xfs_btree_cur *cur, struct xfs_btree_cur *cur,
union xfs_btree_ptr *start, union xfs_btree_ptr *start,
union xfs_btree_ptr *new, union xfs_btree_ptr *new,
int length,
int *stat) int *stat)
{ {
int error; int error;
......
...@@ -519,7 +519,6 @@ xfs_bmbt_alloc_block( ...@@ -519,7 +519,6 @@ xfs_bmbt_alloc_block(
struct xfs_btree_cur *cur, struct xfs_btree_cur *cur,
union xfs_btree_ptr *start, union xfs_btree_ptr *start,
union xfs_btree_ptr *new, union xfs_btree_ptr *new,
int length,
int *stat) int *stat)
{ {
xfs_alloc_arg_t args; /* block allocation args */ xfs_alloc_arg_t args; /* block allocation args */
......
...@@ -2371,7 +2371,7 @@ xfs_btree_split( ...@@ -2371,7 +2371,7 @@ xfs_btree_split(
xfs_btree_buf_to_ptr(cur, lbp, &lptr); xfs_btree_buf_to_ptr(cur, lbp, &lptr);
/* Allocate the new block. If we can't do it, we're toast. Give up. */ /* Allocate the new block. If we can't do it, we're toast. Give up. */
error = cur->bc_ops->alloc_block(cur, &lptr, &rptr, 1, stat); error = cur->bc_ops->alloc_block(cur, &lptr, &rptr, stat);
if (error) if (error)
goto error0; goto error0;
if (*stat == 0) if (*stat == 0)
...@@ -2544,7 +2544,7 @@ xfs_btree_new_iroot( ...@@ -2544,7 +2544,7 @@ xfs_btree_new_iroot(
pp = xfs_btree_ptr_addr(cur, 1, block); pp = xfs_btree_ptr_addr(cur, 1, block);
/* Allocate the new block. If we can't do it, we're toast. Give up. */ /* Allocate the new block. If we can't do it, we're toast. Give up. */
error = cur->bc_ops->alloc_block(cur, pp, &nptr, 1, stat); error = cur->bc_ops->alloc_block(cur, pp, &nptr, stat);
if (error) if (error)
goto error0; goto error0;
if (*stat == 0) { if (*stat == 0) {
...@@ -2648,7 +2648,7 @@ xfs_btree_new_root( ...@@ -2648,7 +2648,7 @@ xfs_btree_new_root(
cur->bc_ops->init_ptr_from_cur(cur, &rptr); cur->bc_ops->init_ptr_from_cur(cur, &rptr);
/* Allocate the new block. If we can't do it, we're toast. Give up. */ /* Allocate the new block. If we can't do it, we're toast. Give up. */
error = cur->bc_ops->alloc_block(cur, &rptr, &lptr, 1, stat); error = cur->bc_ops->alloc_block(cur, &rptr, &lptr, stat);
if (error) if (error)
goto error0; goto error0;
if (*stat == 0) if (*stat == 0)
......
...@@ -129,7 +129,7 @@ struct xfs_btree_ops { ...@@ -129,7 +129,7 @@ struct xfs_btree_ops {
int (*alloc_block)(struct xfs_btree_cur *cur, int (*alloc_block)(struct xfs_btree_cur *cur,
union xfs_btree_ptr *start_bno, union xfs_btree_ptr *start_bno,
union xfs_btree_ptr *new_bno, union xfs_btree_ptr *new_bno,
int length, int *stat); int *stat);
int (*free_block)(struct xfs_btree_cur *cur, struct xfs_buf *bp); int (*free_block)(struct xfs_btree_cur *cur, struct xfs_buf *bp);
/* update last record information */ /* update last record information */
......
...@@ -71,7 +71,6 @@ xfs_inobt_alloc_block( ...@@ -71,7 +71,6 @@ xfs_inobt_alloc_block(
struct xfs_btree_cur *cur, struct xfs_btree_cur *cur,
union xfs_btree_ptr *start, union xfs_btree_ptr *start,
union xfs_btree_ptr *new, union xfs_btree_ptr *new,
int length,
int *stat) int *stat)
{ {
xfs_alloc_arg_t args; /* block allocation args */ xfs_alloc_arg_t args; /* block allocation args */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册