]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: always update params on small allocation
authorBrian Foster <bfoster@redhat.com>
Wed, 14 Aug 2019 22:05:16 +0000 (18:05 -0400)
committerEric Sandeen <sandeen@redhat.com>
Wed, 14 Aug 2019 22:05:16 +0000 (18:05 -0400)
commit9f09e971e2c20d13dfe74bd99eab5e7b9becfcb7
tree637b4f2ca028dbdf17dda83a6424ac07914f5867
parent05479bb93b567411b27af9c36c1991a5f268e4cf
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