]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: fix endianness issue in xfs_ag_shrink_space libxfs-5.14-sync_2021-07-02
authorDarrick J. Wong <djwong@kernel.org>
Mon, 21 Jun 2021 18:53:03 +0000 (11:53 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 2 Jul 2021 23:28:41 +0000 (16:28 -0700)
commitfa533e4674bed261153787e2ef00f9281ad2fcdf
treecd13c5a85325bb8915bb44131a376d65b9fa6456
parentc2b1d7e7d8c81ec378ecea9b085713450b5945a2
xfs: fix endianness issue in xfs_ag_shrink_space

The AGI buffer is in big-endian format, so we must convert the
endianness to CPU format to do any comparisons.

Fixes: 46141dc891f7 ("xfs: introduce xfs_ag_shrink_space()")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
libxfs/xfs_ag.c