summaryrefslogtreecommitdiffstats
path: root/sound/isa/galaxy
diff options
context:
space:
mode:
authorMinchan Kim <minchan@kernel.org>2016-07-27 00:23:23 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2016-07-27 01:19:19 +0200
commit3783689a1aa82ef27a6418b043dd7a077b8330c5 (patch)
tree60076832ccbf684eb9cd3e691689f75e59a68e26 /sound/isa/galaxy
parentzsmalloc: factor page chain functionality out (diff)
downloadlinux-3783689a1aa82ef27a6418b043dd7a077b8330c5.tar.xz
linux-3783689a1aa82ef27a6418b043dd7a077b8330c5.zip
zsmalloc: introduce zspage structure
We have squeezed meta data of zspage into first page's descriptor. So, to get meta data from subpage, we should get first page first of all. But it makes trouble to implment page migration feature of zsmalloc because any place where to get first page from subpage can be raced with first page migration. IOW, first page it got could be stale. For preventing it, I have tried several approahces but it made code complicated so finally, I concluded to separate metadata from first page. Of course, it consumes more memory. IOW, 16bytes per zspage on 32bit at the moment. It means we lost 1% at *worst case*(40B/4096B) which is not bad I think at the cost of maintenance. Link: http://lkml.kernel.org/r/1464736881-24886-9-git-send-email-minchan@kernel.org Signed-off-by: Minchan Kim <minchan@kernel.org> Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Cc: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'sound/isa/galaxy')
0 files changed, 0 insertions, 0 deletions