Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1348002
| From | Xishi Qiu <qiuxishi@huawei.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | a question about slub in function __slab_free() |
| Date | 2016-03-02 13:40 +0100 |
| Message-ID | <r8eel-7A8-5@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
___slab_alloc() deactivate_slab() add_full(s, n, page); The page will be added to full list and the frozen is 0, right? __slab_free() prior = page->freelist; // prior is NULL was_frozen = new.frozen; // was_frozen is 0 ... /* * Slab was on no list before and will be * partially empty * We can defer the list move and instead * freeze it. */ new.frozen = 1; ... I don't understand why "Slab was on no list before"? Thanks, Xishi Qiu
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
a question about slub in function __slab_free() Xishi Qiu <qiuxishi@huawei.com> - 2016-03-02 13:40 +0100
Re: a question about slub in function __slab_free() Joonsoo Kim <js1304@gmail.com> - 2016-03-02 15:40 +0100
Re: a question about slub in function __slab_free() Xishi Qiu <qiuxishi@huawei.com> - 2016-03-03 02:40 +0100
Re: a question about slub in function __slab_free() Jianyu Zhan <nasa4836@gmail.com> - 2016-03-02 16:20 +0100
csiph-web