]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: actually make buffers track the per-ag structures
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 4 Sep 2020 19:50:20 +0000 (15:50 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Fri, 4 Sep 2020 19:50:20 +0000 (15:50 -0400)
commitf8b581d6769d5732007f8aeeae4f7bd4f2e2874c
treea46f6d3869cfa95d1f3421229b6266baaf74fb65
parent7fa3a67f2993d516c4f65c70a36acac518df5b22
libxfs: actually make buffers track the per-ag structures

One of the patches in 5.9 reduces the number of xfs_perag_get calls by
using the b_pag pointer in struct xfs_buf.  Userspace doesn't actually
do anything with this field (and hence that change will cause null
pointer dereferences), so start tracking b_pag.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/rdwr.c