Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1231843 > unrolled thread
| Started by | Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> |
|---|---|
| First post | 2015-09-24 05:50 +0200 |
| Last post | 2015-09-24 05:50 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: + zsmalloc-add-comments-for-inuse-to-zspage.patch added to -mm tree Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2015-09-24 05:50 +0200
| From | Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> |
|---|---|
| Date | 2015-09-24 05:50 +0200 |
| Subject | Re: + zsmalloc-add-comments-for-inuse-to-zspage.patch added to -mm tree |
| Message-ID | <qc5HI-84f-11@gated-at.bofh.it> |
On (09/23/15 14:53), akpm@linux-foundation.org wrote: > ------------------------------------------------------ > From: Hui Zhu <zhuhui@xiaomi.com> > Subject: zsmalloc: add comments for ->inuse to zspage > > Signed-off-by: Hui Zhu <zhuhui@xiaomi.com> > Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> > Cc: Dan Streetman <ddstreet@ieee.org> > Cc: Minchan Kim <minchan@kernel.org> > Signed-off-by: Andrew Morton <akpm@linux-foundation.org> > --- > > mm/zsmalloc.c | 1 + > 1 file changed, 1 insertion(+) > > diff -puN mm/zsmalloc.c~zsmalloc-add-comments-for-inuse-to-zspage mm/zsmalloc.c > --- a/mm/zsmalloc.c~zsmalloc-add-comments-for-inuse-to-zspage > +++ a/mm/zsmalloc.c > @@ -38,6 +38,7 @@ > * page->lru: links together first pages of various zspages. > * Basically forming list of zspages in a fullness group. > * page->mapping: class index and fullness group of the zspage > + * page->inuse: the pages number that is used in this zspage Probably arrived last night to my another mailbox, so haven't seen this one. The comment is wrong. page ->inuse represents the number of objects in use in this zspage; not "the pages number". usage example: zspage_full() : page->inuse == page->objects obj_malloc() : first_page->inuse++ obj_free() : first_page->inuse-- -ss -- 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/
Back to top | Article view | linux.kernel
csiph-web