drbd: avoid redefinition of BITS_PER_PAGE
authorLars Ellenberg <lars.ellenberg@linbit.com>
Fri, 20 Mar 2015 14:47:22 +0000 (15:47 +0100)
committerJens Axboe <axboe@fb.com>
Wed, 25 Nov 2015 16:22:02 +0000 (09:22 -0700)
commit2630628b2dbc3fc320aafaf84836119e4e3d62f1
tree4eb41648cf4d6ecebf1739546b8dff6339bafe78
parent39e91a60c823603d6377cc8fa0b0bf301d1966eb
drbd: avoid redefinition of BITS_PER_PAGE

Apparently we now implicitly get definitions for BITS_PER_PAGE and
BITS_PER_PAGE_MASK from the pid_namespace.h

Instead of renaming our defines, I chose to define only if not yet
defined, but to double check the value if already defined.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/drbd/drbd_bitmap.c