]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
xfs: remove unused length arg from alloc_block ops
authorEric Sandeen <sandeen@redhat.com>
Mon, 14 Apr 2014 09:03:53 +0000 (19:03 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 14 Apr 2014 09:03:53 +0000 (19:03 +1000)
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_alloc_btree.c
fs/xfs/xfs_bmap_btree.c
fs/xfs/xfs_btree.c
fs/xfs/xfs_btree.h
fs/xfs/xfs_ialloc_btree.c

index cc1eadcbb0497ea6163b045dacb740481db27fe6..8358f1ded94df6a548ca5c41ca05255b719ddd59 100644 (file)
@@ -70,7 +70,6 @@ xfs_allocbt_alloc_block(
        struct xfs_btree_cur    *cur,
        union xfs_btree_ptr     *start,
        union xfs_btree_ptr     *new,
-       int                     length,
        int                     *stat)
 {
        int                     error;
index f63403cc8b953b846faaae81525070f204577d4f..948836c4fd90dec4a768f33a33e63355fd1aa2ca 100644 (file)
@@ -519,7 +519,6 @@ xfs_bmbt_alloc_block(
        struct xfs_btree_cur    *cur,
        union xfs_btree_ptr     *start,
        union xfs_btree_ptr     *new,
-       int                     length,
        int                     *stat)
 {
        xfs_alloc_arg_t         args;           /* block allocation args */
index 41dd749dc0e731e7419892feedc071252af2233c..c13d650fdb99adc7e813cb4d56eb827d8da9d9ee 100644 (file)
@@ -2371,7 +2371,7 @@ xfs_btree_split(
        xfs_btree_buf_to_ptr(cur, lbp, &lptr);
 
        /* 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)
                goto error0;
        if (*stat == 0)
@@ -2544,7 +2544,7 @@ xfs_btree_new_iroot(
        pp = xfs_btree_ptr_addr(cur, 1, block);
 
        /* 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)
                goto error0;
        if (*stat == 0) {
@@ -2648,7 +2648,7 @@ xfs_btree_new_root(
        cur->bc_ops->init_ptr_from_cur(cur, &rptr);
 
        /* 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)
                goto error0;
        if (*stat == 0)
index 91e34f21bacea773eaadecfc0a3c29595e912601..875f6876ff482b9686c52696d94b991bdc2abf73 100644 (file)
@@ -129,7 +129,7 @@ struct xfs_btree_ops {
        int     (*alloc_block)(struct xfs_btree_cur *cur,
                               union xfs_btree_ptr *start_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);
 
        /* update last record information */
index 7e309b11e87d75240cfdb41428d1f13dc7d470b8..f1630ff619dd026480d80441d021bbd32299c4f2 100644 (file)
@@ -71,7 +71,6 @@ xfs_inobt_alloc_block(
        struct xfs_btree_cur    *cur,
        union xfs_btree_ptr     *start,
        union xfs_btree_ptr     *new,
-       int                     length,
        int                     *stat)
 {
        xfs_alloc_arg_t         args;           /* block allocation args */