]> git.neil.brown.name Git - history.git/commit
[PATCH] Broken CLEAR_BITMAP() macro
authorMatthew Dobson <colpatch@us.ibm.com>
Thu, 6 Feb 2003 06:55:32 +0000 (22:55 -0800)
committerChristoph Hellwig <hch@lab343.munich.sgi.com>
Thu, 6 Feb 2003 06:55:32 +0000 (22:55 -0800)
commitea4e0b5bc6a86a370d5b7089af4d9aa901cecf9c
treea29b51d0344c48e60596e8c920f8a14148d15c3d
parent3fa327f8a756c99e76fc5f95459fc85a45bcafc5
[PATCH] Broken CLEAR_BITMAP() macro

The CLEAR_BITMAP() macro in include/linux/types.h is broken and doesn't
round the bitmap size to the proper 'long' boundary.

This fixes it by creating a macro BITS_TO_LONGS that just rounds a
number of bits up to the closest number of unsigned longs.  This makes
the DECLARE & CLEAR _BITMAP macros more readable and fixes the bug.
include/linux/types.h