diff options
Diffstat (limited to 'fs/xfs/xfs_fs.h')
-rw-r--r-- | fs/xfs/xfs_fs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/xfs/xfs_fs.h b/fs/xfs/xfs_fs.h index 8f6fc1a9638..c13fed8c394 100644 --- a/fs/xfs/xfs_fs.h +++ b/fs/xfs/xfs_fs.h | |||
@@ -249,6 +249,11 @@ typedef struct xfs_fsop_resblks { | |||
249 | #define XFS_MAX_LOG_BYTES \ | 249 | #define XFS_MAX_LOG_BYTES \ |
250 | ((2 * 1024 * 1024 * 1024ULL) - XFS_MIN_LOG_BYTES) | 250 | ((2 * 1024 * 1024 * 1024ULL) - XFS_MIN_LOG_BYTES) |
251 | 251 | ||
252 | /* Used for sanity checks on superblock */ | ||
253 | #define XFS_MAX_DBLOCKS(s) ((xfs_drfsbno_t)(s)->sb_agcount * (s)->sb_agblocks) | ||
254 | #define XFS_MIN_DBLOCKS(s) ((xfs_drfsbno_t)((s)->sb_agcount - 1) * \ | ||
255 | (s)->sb_agblocks + XFS_MIN_AG_BLOCKS) | ||
256 | |||
252 | /* | 257 | /* |
253 | * Structures for XFS_IOC_FSGROWFSDATA, XFS_IOC_FSGROWFSLOG & XFS_IOC_FSGROWFSRT | 258 | * Structures for XFS_IOC_FSGROWFSDATA, XFS_IOC_FSGROWFSLOG & XFS_IOC_FSGROWFSRT |
254 | */ | 259 | */ |