linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / fs / jfs / jfs_dmap.c
index c161c98..79b5404 100644 (file)
@@ -64,9 +64,9 @@
  *     to the persistent bitmaps in dmaps) is guarded by (busy) buffers.
  */
 
-#define BMAP_LOCK_INIT(bmp)    mutex_init(&bmp->db_bmaplock)
-#define BMAP_LOCK(bmp)         mutex_lock(&bmp->db_bmaplock)
-#define BMAP_UNLOCK(bmp)       mutex_unlock(&bmp->db_bmaplock)
+#define BMAP_LOCK_INIT(bmp)    init_MUTEX(&bmp->db_bmaplock)
+#define BMAP_LOCK(bmp)         down(&bmp->db_bmaplock)
+#define BMAP_UNLOCK(bmp)       up(&bmp->db_bmaplock)
 
 /*
  * forward references
@@ -125,7 +125,7 @@ static int dbGetL2AGSize(s64 nblocks);
  * into the table, with the table elements yielding the maximum
  * binary buddy of free bits within the character.
  */
-static const s8 budtab[256] = {
+static s8 budtab[256] = {
        3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
        2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
        2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,