xfs: update max log size

Commit a6634fba3dec4a92f0a2c4e30c80b634c0576ad5 in xfsprogs increased the
maximum log size supported by mkfs. Merged back the changes to xfs_fs.h
so the growfs enforced the same limit and the headers are in sync.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>

authored by

Christoph Hellwig and committed by
Christoph Hellwig
e1696834 4156e735

+7 -4
+7 -4
fs/xfs/xfs_fs.h
··· 239 239 * Minimum and maximum sizes need for growth checks 240 240 */ 241 241 #define XFS_MIN_AG_BLOCKS 64 242 - #define XFS_MIN_LOG_BLOCKS 512 243 - #define XFS_MAX_LOG_BLOCKS (64 * 1024) 244 - #define XFS_MIN_LOG_BYTES (256 * 1024) 245 - #define XFS_MAX_LOG_BYTES (128 * 1024 * 1024) 242 + #define XFS_MIN_LOG_BLOCKS 512ULL 243 + #define XFS_MAX_LOG_BLOCKS (1024 * 1024ULL) 244 + #define XFS_MIN_LOG_BYTES (10 * 1024 * 1024ULL) 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 251 * Structures for XFS_IOC_FSGROWFSDATA, XFS_IOC_FSGROWFSLOG & XFS_IOC_FSGROWFSRT