Skip to content
Commit fe5ed6c2 authored by Pan Bian's avatar Pan Bian Committed by Darrick J. Wong
Browse files

xfs: libxfs: move xfs_perag_put late



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: default avatarPan Bian <bianpan2016@163.com>
Reviewed-by: default avatarCarlos Maiolino <cmaiolino@redhat.com>
[darrick: minor changelog edits]
Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
parent d6f215f3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment