I fixed this in 2.5 ages ago, just didn't get it in 2.4 block-highmem...
There's a tiny bit missing from your patch:
> --- include/linux/highmem.h.orig 2003-03-12 05:01:56.000000000 -0500
> +++ include/linux/highmem.h 2003-03-12 16:07:04.000000000 -0500
> @@ -33,22 +33,10 @@
> {
> unsigned long addr;
>
> - __save_flags(*flags);
> -
> - /*
> - * could be low
> - */
> - if (!PageHighMem(bh->b_page))
> - return bh->b_data;
> -
> - /*
> - * it's a highmem page
> - */
> - __cli();
> + local_irq_save(*flags);
local_irq_disable();
> addr = (unsigned long) kmap_atomic(bh->b_page, KM_BH_IRQ);
>
> - if (addr & ~PAGE_MASK)
> - BUG();
> + BUG_ON (addr & ~PAGE_MASK);
>
> return (char *) addr + bh_offset(bh);
> }
> @@ -58,7 +46,7 @@
> unsigned long ptr = (unsigned long) buffer & PAGE_MASK;
>
> kunmap_atomic((void *) ptr, KM_BH_IRQ);
> - __restore_flags(*flags);
> + local_irq_restore(*flags);
> }
other than that it's fine. See 2.5 for reference.
-- Jens Axboe- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/