summaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs/xfs_types.h
diff options
context:
space:
mode:
authorDarrick J. Wong2018-07-26 19:10:42 +0200
committerDarrick J. Wong2018-07-31 22:18:09 +0200
commit69775fd15dc78e0547af45fb3e375d5423cb21b1 (patch)
tree506226a42d76eb99d51e5686f8205d38aa5f0deb /fs/xfs/libxfs/xfs_types.h
parentlibxfs: add more bounds checking to sb sanity checks (diff)
downloadkernel-qcow2-linux-69775fd15dc78e0547af45fb3e375d5423cb21b1.tar.gz
kernel-qcow2-linux-69775fd15dc78e0547af45fb3e375d5423cb21b1.tar.xz
kernel-qcow2-linux-69775fd15dc78e0547af45fb3e375d5423cb21b1.zip
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>
Diffstat (limited to 'fs/xfs/libxfs/xfs_types.h')
-rw-r--r--fs/xfs/libxfs/xfs_types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_types.h b/fs/xfs/libxfs/xfs_types.h
index 4055d62f690c..b9e6c89284c3 100644
--- a/fs/xfs/libxfs/xfs_types.h
+++ b/fs/xfs/libxfs/xfs_types.h
@@ -165,5 +165,6 @@ bool xfs_verify_ino(struct xfs_mount *mp, xfs_ino_t ino);
bool xfs_internal_inum(struct xfs_mount *mp, xfs_ino_t ino);
bool xfs_verify_dir_ino(struct xfs_mount *mp, xfs_ino_t ino);
bool xfs_verify_rtbno(struct xfs_mount *mp, xfs_rtblock_t rtbno);
+bool xfs_verify_icount(struct xfs_mount *mp, unsigned long long icount);
#endif /* __XFS_TYPES_H__ */