diff options
author | Eric Sandeen <sandeen@sandeen.net> | 2007-08-16 02:25:33 -0400 |
---|---|---|
committer | Tim Shimmin <tes@chook.melbourne.sgi.com> | 2007-10-15 02:42:18 -0400 |
commit | dcb3b83febd1028afbc4a32cf7642a6580e349c6 (patch) | |
tree | 91cf6ed2e93bf9448ee5547459610cb248c15d83 /fs/xfs/xfs_log_priv.h | |
parent | af3a2e8a3f3055ef269b09433bb28e33a0d1b8c0 (diff) |
[XFS] clean up xfs_start_flags
xfs_start_flags can make use of is_power_of_2 to tidy up the test a little
bit.
SGI-PV: 968563
SGI-Modid: xfs-linux-melb:xfs-kern:29327a
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_log_priv.h')
-rw-r--r-- | fs/xfs/xfs_log_priv.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_log_priv.h b/fs/xfs/xfs_log_priv.h index e973972d4633..db0d53ffe458 100644 --- a/fs/xfs/xfs_log_priv.h +++ b/fs/xfs/xfs_log_priv.h | |||
@@ -35,11 +35,11 @@ struct xfs_mount; | |||
35 | #define XLOG_VERSION_1 1 | 35 | #define XLOG_VERSION_1 1 |
36 | #define XLOG_VERSION_2 2 /* Large IClogs, Log sunit */ | 36 | #define XLOG_VERSION_2 2 /* Large IClogs, Log sunit */ |
37 | #define XLOG_VERSION_OKBITS (XLOG_VERSION_1 | XLOG_VERSION_2) | 37 | #define XLOG_VERSION_OKBITS (XLOG_VERSION_1 | XLOG_VERSION_2) |
38 | #define XLOG_RECORD_BSIZE (16*1024) /* eventually 32k */ | 38 | #define XLOG_MIN_RECORD_BSIZE (16*1024) /* eventually 32k */ |
39 | #define XLOG_BIG_RECORD_BSIZE (32*1024) /* 32k buffers */ | 39 | #define XLOG_BIG_RECORD_BSIZE (32*1024) /* 32k buffers */ |
40 | #define XLOG_MAX_RECORD_BSIZE (256*1024) | 40 | #define XLOG_MAX_RECORD_BSIZE (256*1024) |
41 | #define XLOG_HEADER_CYCLE_SIZE (32*1024) /* cycle data in header */ | 41 | #define XLOG_HEADER_CYCLE_SIZE (32*1024) /* cycle data in header */ |
42 | #define XLOG_RECORD_BSHIFT 14 /* 16384 == 1 << 14 */ | 42 | #define XLOG_MIN_RECORD_BSHIFT 14 /* 16384 == 1 << 14 */ |
43 | #define XLOG_BIG_RECORD_BSHIFT 15 /* 32k == 1 << 15 */ | 43 | #define XLOG_BIG_RECORD_BSHIFT 15 /* 32k == 1 << 15 */ |
44 | #define XLOG_MAX_RECORD_BSHIFT 18 /* 256k == 1 << 18 */ | 44 | #define XLOG_MAX_RECORD_BSHIFT 18 /* 256k == 1 << 18 */ |
45 | #define XLOG_BTOLSUNIT(log, b) (((b)+(log)->l_mp->m_sb.sb_logsunit-1) / \ | 45 | #define XLOG_BTOLSUNIT(log, b) (((b)+(log)->l_mp->m_sb.sb_logsunit-1) / \ |