]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: libxfs: move xfs_perag_put late
authorPan Bian <bianpan2016@163.com>
Wed, 27 Feb 2019 23:13:44 +0000 (17:13 -0600)
committerEric Sandeen <sandeen@redhat.com>
Wed, 27 Feb 2019 23:13:44 +0000 (17:13 -0600)
commit8648192fc4bc013d3782cf43114dc55957964f8b
tree54a9b6258d5629816f6845639d4b3018a3110a9a
parent413a0f0d91a15b9eab0d8ea7a4ed773243f14f88
xfs: libxfs: move xfs_perag_put late

Source kernel commit: fe5ed6c22e94b131ed5608d66ebce1efc39a7edb

The function xfs_alloc_get_freelist calls xfs_perag_put to drop the
reference. However, pag->pagf_btreeblks is read and written after the
put operation. This patch moves the put operation later.

Signed-off-by: Pan Bian <bianpan2016@163.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
[darrick: minor changelog edits]
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