Re: Memory management woes - order 1 allocation failures

From: Alan Cox
Date: Tue Mar 02 2010 - 17:15:32 EST


> -#define TTY_BUFFER_PAGE ((PAGE_SIZE - 256) / 2)
> +#define TTY_BUFFER_PAGE (((PAGE_SIZE - sizeof(struct tty_buffer)) / 2) & ~0xFF)

Yes agreed I missed a '-1'

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