diff options
Diffstat (limited to 'fs/xfs/xfs_fs.h')
-rw-r--r-- | fs/xfs/xfs_fs.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/fs/xfs/xfs_fs.h b/fs/xfs/xfs_fs.h index f7c06fac8229..c4ea51b55dce 100644 --- a/fs/xfs/xfs_fs.h +++ b/fs/xfs/xfs_fs.h | |||
@@ -239,10 +239,13 @@ typedef struct xfs_fsop_resblks { | |||
239 | * Minimum and maximum sizes need for growth checks | 239 | * Minimum and maximum sizes need for growth checks |
240 | */ | 240 | */ |
241 | #define XFS_MIN_AG_BLOCKS 64 | 241 | #define XFS_MIN_AG_BLOCKS 64 |
242 | #define XFS_MIN_LOG_BLOCKS 512 | 242 | #define XFS_MIN_LOG_BLOCKS 512ULL |
243 | #define XFS_MAX_LOG_BLOCKS (64 * 1024) | 243 | #define XFS_MAX_LOG_BLOCKS (1024 * 1024ULL) |
244 | #define XFS_MIN_LOG_BYTES (256 * 1024) | 244 | #define XFS_MIN_LOG_BYTES (10 * 1024 * 1024ULL) |
245 | #define XFS_MAX_LOG_BYTES (128 * 1024 * 1024) | 245 | |
246 | /* keep the maximum size under 2^31 by a small amount */ | ||
247 | #define XFS_MAX_LOG_BYTES \ | ||
248 | ((2 * 1024 * 1024 * 1024ULL) - XFS_MIN_LOG_BYTES) | ||
246 | 249 | ||
247 | /* | 250 | /* |
248 | * Structures for XFS_IOC_FSGROWFSDATA, XFS_IOC_FSGROWFSLOG & XFS_IOC_FSGROWFSRT | 251 | * Structures for XFS_IOC_FSGROWFSDATA, XFS_IOC_FSGROWFSLOG & XFS_IOC_FSGROWFSRT |