linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* a question about slub in function __slab_free()
@ 2016-03-02 12:26 Xishi Qiu
  2016-03-02 14:38 ` Joonsoo Kim
  2016-03-02 15:12 ` Jianyu Zhan
  0 siblings, 2 replies; 4+ messages in thread
From: Xishi Qiu @ 2016-03-02 12:26 UTC (permalink / raw)
  To: LKML, Linux MM

___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

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-03-03  1:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-02 12:26 a question about slub in function __slab_free() Xishi Qiu
2016-03-02 14:38 ` Joonsoo Kim
2016-03-03  1:26   ` Xishi Qiu
2016-03-02 15:12 ` Jianyu Zhan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).