diff options
author | Lars Ellenberg <lars.ellenberg@linbit.com> | 2011-02-21 07:21:03 -0500 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2011-10-14 10:47:46 -0400 |
commit | 7ad651b52218eea3f9280dbb353dfe0c42742d85 (patch) | |
tree | 52206f862eb6d1999252522e181d833673348ff7 /include/linux/drbd_limits.h | |
parent | 46a15bc3ec425b546d140581c28192ab7877ddc4 (diff) |
drbd: new on-disk activity log transaction format
Use a new on-disk transaction format for the activity log, which allows
for multiple changes to the active set per transaction.
Using 4k transaction blocks, we can now get rid of the work-around code
to deal with devices not supporting 512 byte logical block size.
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'include/linux/drbd_limits.h')
-rw-r--r-- | include/linux/drbd_limits.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/drbd_limits.h b/include/linux/drbd_limits.h index 447c36752385..75f05af33725 100644 --- a/include/linux/drbd_limits.h +++ b/include/linux/drbd_limits.h | |||
@@ -102,10 +102,12 @@ | |||
102 | #define DRBD_RATE_DEF 250 /* kb/second */ | 102 | #define DRBD_RATE_DEF 250 /* kb/second */ |
103 | 103 | ||
104 | /* less than 7 would hit performance unnecessarily. | 104 | /* less than 7 would hit performance unnecessarily. |
105 | * 3833 is the largest prime that still does fit | 105 | * 919 slots context information per transaction, |
106 | * into 64 sectors of activity log */ | 106 | * 32k activity log, 4k transaction size, |
107 | * one transaction in flight: | ||
108 | * 919 * 7 = 6433 */ | ||
107 | #define DRBD_AL_EXTENTS_MIN 7 | 109 | #define DRBD_AL_EXTENTS_MIN 7 |
108 | #define DRBD_AL_EXTENTS_MAX 3833 | 110 | #define DRBD_AL_EXTENTS_MAX 6433 |
109 | #define DRBD_AL_EXTENTS_DEF 127 | 111 | #define DRBD_AL_EXTENTS_DEF 127 |
110 | 112 | ||
111 | #define DRBD_AFTER_MIN -1 | 113 | #define DRBD_AFTER_MIN -1 |