OSDN Git Service

xfs: remove xfs_alloc_arg firstblock field
authorBrian Foster <bfoster@redhat.com>
Thu, 12 Jul 2018 05:26:30 +0000 (22:26 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Jul 2018 05:26:30 +0000 (22:26 -0700)
commit64396ff2c25b2cd8156948a64ae0da5ff962e3f2
treeb652cfb7e13435d7851f970dbaae506c11788d10
parentcf612de732cb6ef626019ca085406d183f0a055a
xfs: remove xfs_alloc_arg firstblock field

The xfs_alloc_arg.firstblock field is used to control the starting
agno for an allocation. The structure already carries a pointer to
the transaction, which carries the current firstblock value.

Remove the field and access ->t_firstblock directly in the
allocation code.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_alloc.c
fs/xfs/libxfs/xfs_alloc.h
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_bmap_btree.c
fs/xfs/libxfs/xfs_refcount_btree.c
fs/xfs/xfs_trace.h