]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: always update params on small allocation
authorBrian Foster <bfoster@redhat.com>
Wed, 28 Aug 2019 16:08:08 +0000 (12:08 -0400)
committerEric Sandeen <sandeen@redhat.com>
Wed, 28 Aug 2019 16:08:08 +0000 (12:08 -0400)
commit2d7ea81f0e47daaca269ba9722d61930104a6ba2
treea4b1a3b5f5640160300aa778e670adbe055dfa12
parent9e1862f0e50f195ff1c1641e1dd95ff68e3c982c
xfs: always update params on small allocation

Source kernel commit: 7e36a3a63d3e480e75b4991aa983d4059ca5d401

xfs_alloc_ag_vextent_small() doesn't update the output parameters in
the event of an AGFL allocation. Instead, it updates the
xfs_alloc_arg structure directly to complete the allocation.

Update both args and the output params to provide consistent
behavior for future callers.

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_alloc.c