aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ellenberg <lars.ellenberg@linbit.com>2010-01-05 19:33:54 +0100
committerPhilipp Reisner <philipp.reisner@linbit.com>2010-01-07 14:07:11 +0100
commit36bfc7e2100ab3f9891bb779c36d5e685f253509 (patch)
tree12cb5e3a6675c3af81789cce05dca0cb0de28344
parent2d1ee87d8763b38668f6f11bb53abb689a49a43e (diff)
downloadkernel_samsung_crespo-36bfc7e2100ab3f9891bb779c36d5e685f253509.zip
kernel_samsung_crespo-36bfc7e2100ab3f9891bb779c36d5e685f253509.tar.gz
kernel_samsung_crespo-36bfc7e2100ab3f9891bb779c36d5e685f253509.tar.bz2
drbd: check on CONFIG_LBDAF, not LBD
It is called LBDAF since 2.6.31. impact: without this change, on 32bit, DRBD would wrongly claim to only support 2TiB devices. Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com> Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
-rw-r--r--drivers/block/drbd/drbd_int.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h
index c975587..79d8e22 100644
--- a/drivers/block/drbd/drbd_int.h
+++ b/drivers/block/drbd/drbd_int.h
@@ -1275,7 +1275,7 @@ struct bm_extent {
#if DRBD_MAX_SECTORS_BM < DRBD_MAX_SECTORS_32
#define DRBD_MAX_SECTORS DRBD_MAX_SECTORS_BM
#define DRBD_MAX_SECTORS_FLEX DRBD_MAX_SECTORS_BM
-#elif !defined(CONFIG_LBD) && BITS_PER_LONG == 32
+#elif !defined(CONFIG_LBDAF) && BITS_PER_LONG == 32
#define DRBD_MAX_SECTORS DRBD_MAX_SECTORS_32
#define DRBD_MAX_SECTORS_FLEX DRBD_MAX_SECTORS_32
#else