]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - libxfs/xfs_sb.c
xfs: verify icount in superblock write
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 5 Oct 2018 02:36:11 +0000 (21:36 -0500)
committerEric Sandeen <sandeen@redhat.com>
Fri, 5 Oct 2018 02:36:11 +0000 (21:36 -0500)
commit751d83bcce93b3cfb2bb3a1068db156012d24a70
treecc90915525c7475fe7f30c3ac147dea84e6c130a
parent5a5276224333719a422e8b6e54c455d9ccebeca9
xfs: verify icount in superblock write

Source kernel commit: 69775fd15dc78e0547af45fb3e375d5423cb21b1

Add a helper predicate to check the inode count for sanity, then use it
in the superblock write verifier to inspect sb_icount.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Bill O'Donnell <billodo@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_sb.c
libxfs/xfs_types.c
libxfs/xfs_types.h