[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170123062621.GB12833@bombadil.infradead.org>
Date: Sun, 22 Jan 2017 22:26:21 -0800
From: Matthew Wilcox <willy@...radead.org>
To: zhouxianrong <zhouxianrong@...wei.com>
Cc: Sergey Senozhatsky <sergey.senozhatsky.work@...il.com>,
linux-mm@...ck.org, linux-kernel@...r.kernel.org,
akpm@...ux-foundation.org, sergey.senozhatsky@...il.com,
minchan@...nel.org, ngupta@...are.org, Mi.Sophia.Wang@...wei.com,
zhouxiyu@...wei.com, weidu.du@...wei.com, zhangshiming5@...wei.com,
won.ho.park@...wei.com
Subject: Re: [PATCH] mm: extend zero pages to same element pages for zram
On Sun, Jan 22, 2017 at 10:58:38AM +0800, zhouxianrong wrote:
> 1. memset is just set a int value but i want to set a long value.
memset doesn't set an int value.
DESCRIPTION
The memset() function fills the first n bytes of the memory area
pointed to by s with the constant byte c.
It sets a byte value. K&R just happened to choose 'int' as the type
to store that "unsigned char" in. Probably for very good reasons which
make absolutely no sense today.
Powered by blists - more mailing lists