diff options
| author | Dave Chinner <david@fromorbit.com> | 2014-05-14 19:36:35 -0400 |
|---|---|---|
| committer | Dave Chinner <david@fromorbit.com> | 2014-05-14 19:36:35 -0400 |
| commit | fdd3a2ae2e48310491e605c46201c95629dd450b (patch) | |
| tree | 2a9361017d5fad1b39e77b8bb5eb1fd45cea0597 | |
| parent | ee4eec478be4677b93775d17bc079efb5922b276 (diff) | |
| parent | 5e06d148949bb79af429c46afb4b81bc31308f6e (diff) | |
Merge branch 'xfs-unused-args-cleanup' into for-next
43 files changed, 113 insertions, 166 deletions
diff --git a/fs/xfs/xfs_alloc_btree.c b/fs/xfs/xfs_alloc_btree.c index cc1eadcbb049..8358f1ded94d 100644 --- a/fs/xfs/xfs_alloc_btree.c +++ b/fs/xfs/xfs_alloc_btree.c | |||
| @@ -70,7 +70,6 @@ xfs_allocbt_alloc_block( | |||
| 70 | struct xfs_btree_cur *cur, | 70 | struct xfs_btree_cur *cur, |
| 71 | union xfs_btree_ptr *start, | 71 | union xfs_btree_ptr *start, |
| 72 | union xfs_btree_ptr *new, | 72 | union xfs_btree_ptr *new, |
| 73 | int length, | ||
| 74 | int *stat) | 73 | int *stat) |
| 75 | { | 74 | { |
| 76 | int error; | 75 | int error; |
diff --git a/fs/xfs/xfs_attr_remote.c b/fs/xfs/xfs_attr_remote.c index d2e6e948cec7..0f0679a134e2 100644 --- a/fs/xfs/xfs_attr_remote.c +++ b/fs/xfs/xfs_attr_remote.c | |||
| @@ -68,7 +68,6 @@ xfs_attr3_rmt_blocks( | |||
| 68 | */ | 68 | */ |
| 69 | static bool | 69 | static bool |
| 70 | xfs_attr3_rmt_hdr_ok( | 70 | xfs_attr3_rmt_hdr_ok( |
| 71 | struct xfs_mount *mp, | ||
| 72 | void *ptr, | 71 | void *ptr, |
| 73 | xfs_ino_t ino, | 72 | xfs_ino_t ino, |
| 74 | uint32_t offset, | 73 | uint32_t offset, |
| @@ -251,7 +250,7 @@ xfs_attr_rmtval_copyout( | |||
| 251 | byte_cnt = min(*valuelen, byte_cnt); | 250 | byte_cnt = min(*valuelen, byte_cnt); |
| 252 | 251 | ||
| 253 | if (xfs_sb_version_hascrc(&mp->m_sb)) { | 252 | if (xfs_sb_version_hascrc(&mp->m_sb)) { |
| 254 | if (!xfs_attr3_rmt_hdr_ok(mp, src, ino, *offset, | 253 | if (!xfs_attr3_rmt_hdr_ok(src, ino, *offset, |
| 255 | byte_cnt, bno)) { | 254 | byte_cnt, bno)) { |
| 256 | xfs_alert(mp, | 255 | xfs_alert(mp, |
| 257 | "remote attribute header mismatch bno/off/len/owner (0x%llx/0x%x/Ox%x/0x%llx)", | 256 | "remote attribute header mismatch bno/off/len/owner (0x%llx/0x%x/Ox%x/0x%llx)", |
diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c index f0efc7e970ef..37b8d3c66745 100644 --- a/fs/xfs/xfs_bmap.c +++ b/fs/xfs/xfs_bmap.c | |||
| @@ -94,7 +94,7 @@ xfs_bmap_compute_maxlevels( | |||
| 94 | maxleafents = MAXAEXTNUM; | 94 | maxleafents = MAXAEXTNUM; |
| 95 | sz = XFS_BMDR_SPACE_CALC(MINABTPTRS); | 95 | sz = XFS_BMDR_SPACE_CALC(MINABTPTRS); |
| 96 | } | 96 | } |
| 97 | maxrootrecs = xfs_bmdr_maxrecs(mp, sz, 0); | 97 | maxrootrecs = xfs_bmdr_maxrecs(sz, 0); |
| 98 | minleafrecs = mp->m_bmap_dmnr[0]; | 98 | minleafrecs = mp->m_bmap_dmnr[0]; |
| 99 | minnoderecs = mp->m_bmap_dmnr[1]; | 99 | minnoderecs = mp->m_bmap_dmnr[1]; |
| 100 | maxblocks = (maxleafents + minleafrecs - 1) / minleafrecs; | 100 | maxblocks = (maxleafents + minleafrecs - 1) / minleafrecs; |
| @@ -233,7 +233,6 @@ xfs_default_attroffset( | |||
| 233 | */ | 233 | */ |
| 234 | STATIC void | 234 | STATIC void |
| 235 | xfs_bmap_forkoff_reset( | 235 | xfs_bmap_forkoff_reset( |
| 236 | xfs_mount_t *mp, | ||
| 237 | xfs_inode_t *ip, | 236 | xfs_inode_t *ip, |
| 238 | int whichfork) | 237 | int whichfork) |
| 239 | { | 238 | { |
| @@ -905,7 +904,7 @@ xfs_bmap_local_to_extents_empty( | |||
| 905 | ASSERT(ifp->if_bytes == 0); | 904 | ASSERT(ifp->if_bytes == 0); |
| 906 | ASSERT(XFS_IFORK_NEXTENTS(ip, whichfork) == 0); | 905 | ASSERT(XFS_IFORK_NEXTENTS(ip, whichfork) == 0); |
| 907 | 906 | ||
| 908 | xfs_bmap_forkoff_reset(ip->i_mount, ip, whichfork); | 907 | xfs_bmap_forkoff_reset(ip, whichfork); |
| 909 | ifp->if_flags &= ~XFS_IFINLINE; | 908 | ifp->if_flags &= ~XFS_IFINLINE; |
| 910 | ifp->if_flags |= XFS_IFEXTENTS; | 909 | ifp->if_flags |= XFS_IFEXTENTS; |
| 911 | XFS_IFORK_FMT_SET(ip, whichfork, XFS_DINODE_FMT_EXTENTS); | 910 | XFS_IFORK_FMT_SET(ip, whichfork, XFS_DINODE_FMT_EXTENTS); |
| @@ -1675,7 +1674,6 @@ xfs_bmap_isaeof( | |||
| 1675 | */ | 1674 | */ |
| 1676 | int | 1675 | int |
| 1677 | xfs_bmap_last_offset( | 1676 | xfs_bmap_last_offset( |
| 1678 | struct xfs_trans *tp, | ||
| 1679 | struct xfs_inode *ip, | 1677 | struct xfs_inode *ip, |
| 1680 | xfs_fileoff_t *last_block, | 1678 | xfs_fileoff_t *last_block, |
| 1681 | int whichfork) | 1679 | int whichfork) |
diff --git a/fs/xfs/xfs_bmap.h b/fs/xfs/xfs_bmap.h index f84bd7af43be..38ba36e9b2f0 100644 --- a/fs/xfs/xfs_bmap.h +++ b/fs/xfs/xfs_bmap.h | |||
| @@ -156,8 +156,8 @@ int xfs_bmap_first_unused(struct xfs_trans *tp, struct xfs_inode *ip, | |||
| 156 | xfs_extlen_t len, xfs_fileoff_t *unused, int whichfork); | 156 | xfs_extlen_t len, xfs_fileoff_t *unused, int whichfork); |
| 157 | int xfs_bmap_last_before(struct xfs_trans *tp, struct xfs_inode *ip, | 157 | int xfs_bmap_last_before(struct xfs_trans *tp, struct xfs_inode *ip, |
| 158 | xfs_fileoff_t *last_block, int whichfork); | 158 | xfs_fileoff_t *last_block, int whichfork); |
| 159 | int xfs_bmap_last_offset(struct xfs_trans *tp, struct xfs_inode *ip, | 159 | int xfs_bmap_last_offset(struct xfs_inode *ip, xfs_fileoff_t *unused, |
| 160 | xfs_fileoff_t *unused, int whichfork); | 160 | int whichfork); |
| 161 | int xfs_bmap_one_block(struct xfs_inode *ip, int whichfork); | 161 | int xfs_bmap_one_block(struct xfs_inode *ip, int whichfork); |
| 162 | int xfs_bmap_read_extents(struct xfs_trans *tp, struct xfs_inode *ip, | 162 | int xfs_bmap_read_extents(struct xfs_trans *tp, struct xfs_inode *ip, |
| 163 | int whichfork); | 163 | int whichfork); |
diff --git a/fs/xfs/xfs_bmap_btree.c b/fs/xfs/xfs_bmap_btree.c index 818d546664e7..948836c4fd90 100644 --- a/fs/xfs/xfs_bmap_btree.c +++ b/fs/xfs/xfs_bmap_btree.c | |||
| @@ -84,7 +84,7 @@ xfs_bmdr_to_bmbt( | |||
| 84 | rblock->bb_level = dblock->bb_level; | 84 | rblock->bb_level = dblock->bb_level; |
| 85 | ASSERT(be16_to_cpu(rblock->bb_level) > 0); | 85 | ASSERT(be16_to_cpu(rblock->bb_level) > 0); |
| 86 | rblock->bb_numrecs = dblock->bb_numrecs; | 86 | rblock->bb_numrecs = dblock->bb_numrecs; |
| 87 | dmxr = xfs_bmdr_maxrecs(mp, dblocklen, 0); | 87 | dmxr = xfs_bmdr_maxrecs(dblocklen, 0); |
| 88 | fkp = XFS_BMDR_KEY_ADDR(dblock, 1); | 88 | fkp = XFS_BMDR_KEY_ADDR(dblock, 1); |
| 89 | tkp = XFS_BMBT_KEY_ADDR(mp, rblock, 1); | 89 | tkp = XFS_BMBT_KEY_ADDR(mp, rblock, 1); |
| 90 | fpp = XFS_BMDR_PTR_ADDR(dblock, 1, dmxr); | 90 | fpp = XFS_BMDR_PTR_ADDR(dblock, 1, dmxr); |
| @@ -443,7 +443,7 @@ xfs_bmbt_to_bmdr( | |||
| 443 | ASSERT(rblock->bb_level != 0); | 443 | ASSERT(rblock->bb_level != 0); |
| 444 | dblock->bb_level = rblock->bb_level; | 444 | dblock->bb_level = rblock->bb_level; |
| 445 | dblock->bb_numrecs = rblock->bb_numrecs; | 445 | dblock->bb_numrecs = rblock->bb_numrecs; |
| 446 | dmxr = xfs_bmdr_maxrecs(mp, dblocklen, 0); | 446 | dmxr = xfs_bmdr_maxrecs(dblocklen, 0); |
| 447 | fkp = XFS_BMBT_KEY_ADDR(mp, rblock, 1); | 447 | fkp = XFS_BMBT_KEY_ADDR(mp, rblock, 1); |
| 448 | tkp = XFS_BMDR_KEY_ADDR(dblock, 1); | 448 | tkp = XFS_BMDR_KEY_ADDR(dblock, 1); |
| 449 | fpp = XFS_BMAP_BROOT_PTR_ADDR(mp, rblock, 1, rblocklen); | 449 | fpp = XFS_BMAP_BROOT_PTR_ADDR(mp, rblock, 1, rblocklen); |
| @@ -519,7 +519,6 @@ xfs_bmbt_alloc_block( | |||
| 519 | struct xfs_btree_cur *cur, | 519 | struct xfs_btree_cur *cur, |
| 520 | union xfs_btree_ptr *start, | 520 | union xfs_btree_ptr *start, |
| 521 | union xfs_btree_ptr *new, | 521 | union xfs_btree_ptr *new, |
| 522 | int length, | ||
