RE: [PATCH v2 1/4] introduce zero filled pages handler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> From: Konrad Rzeszutek Wilk [mailto:konrad@xxxxxxxxxx]
> Subject: Re: [PATCH v2 1/4] introduce zero filled pages handler
> 
> > +
> > +	for (pos = 0; pos < PAGE_SIZE / sizeof(*page); pos++) {
> > +		if (page[pos])
> > +			return false;
> 
> Perhaps allocate a static page filled with zeros and just do memcmp?

That seems like a bad idea.  Why compare two different
memory locations when comparing one memory location
to a register will do?

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]