]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: always update params on small allocation
authorBrian Foster <bfoster@redhat.com>
Sat, 29 Jun 2019 02:30:20 +0000 (19:30 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sat, 29 Jun 2019 02:30:20 +0000 (19:30 -0700)
commit78790e1634ed682742075885dbb15bf4d99ff3a9
treecff4317e2660eb0814a630e105adb296daba927f
parent1277bbfe9287c57958ada094fba02ea438c959ea
xfs: always update params on small allocation

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>
fs/xfs/libxfs/xfs_alloc.c