[EMAIL PROTECTED] writes:
>  
>       /* Reset the direct mapping. Can block */
> -     if (p->flags >> 20)
> -             ioremap_change_attr(p->phys_addr, p->size, 0);
> +     if (p->flags >> 20) {
> +             free_mattr(p->phys_addr, p->phys_addr + get_vm_area_size(p),
> +                        p->flags>>20);
> +             ioremap_change_attr(p->phys_addr, get_vm_area_size(p), 0);

If you really unmap all holes and forbid (or let it just return the
__va address) ioremap on anything mapped (which is probably ok) then
you can eliminate that completely.

-Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to