]> git.baikalelectronics.ru Git - 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)
commit055c51b2a02b7b350eb0d8639c8b7a944b9acfd2
tree506226a42d76eb99d51e5686f8205d38aa5f0deb
parent2eb84c740de8928810f56b283dd4baad89394b29
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