]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
xfs: verify icount in superblock write
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 26 Jul 2018 17:10:42 +0000 (10:10 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 31 Jul 2018 20:18:09 +0000 (13:18 -0700)
commit69775fd15dc78e0547af45fb3e375d5423cb21b1
tree506226a42d76eb99d51e5686f8205d38aa5f0deb
parent8756a5af18191a471e670cc577aea60b652fea4c
xfs: verify icount in superblock write

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>
fs/xfs/libxfs/xfs_sb.c
fs/xfs/libxfs/xfs_types.c
fs/xfs/libxfs/xfs_types.h