summaryrefslogtreecommitdiff
path: root/crypto/pcbc.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2016-04-05 21:06:20 (GMT)
committerDave Chinner <david@fromorbit.com>2016-04-05 21:06:20 (GMT)
commitad747e3b299671e1a53db74963cc6c5f6cdb9f6d (patch)
tree97266641a6c63098ac4d755ff2c5feed4e3b047b /crypto/pcbc.c
parentd0a58e833931234c44e515b5b8bede32bd4e6eed (diff)
downloadlinux-ad747e3b299671e1a53db74963cc6c5f6cdb9f6d.tar.xz
xfs: Don't wrap growfs AGFL indexes
Commit 96f859d ("libxfs: pack the agfl header structure so XFS_AGFL_SIZE is correct") allowed the freelist to use the empty slot at the end of the freelist on 64 bit systems that was not being used due to sizeof() rounding up the structure size. This has caused versions of xfs_repair prior to 4.5.0 (which also has the fix) to report this as a corruption once the filesystem has been grown. Older kernels can also have problems (seen from a whacky container/vm management environment) mounting filesystems grown on a system with a newer kernel than the vm/container it is deployed on. To avoid this problem, change the initial free list indexes not to wrap across the end of the AGFL, hence avoiding the initialisation of agf_fllast to the last index in the AGFL. cc: <stable@vger.kernel.org> # 4.4-4.5 Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'crypto/pcbc.c')
0 files changed, 0 insertions, 0 deletions