]> git.baikalelectronics.ru Git - kernel.git/commit
shmem: unify regular and tiny shmem
authorMatt Mackall <mpm@selenic.com>
Tue, 6 Jan 2009 22:40:20 +0000 (14:40 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 6 Jan 2009 23:59:08 +0000 (15:59 -0800)
commit6d60b4455758fae35b2f826b94bda8110a906451
tree1f60fd49d516b7b242781a77446993b1dfb5bb66
parent36f6f5acd926e2484360047bc5c167c1e5bbd60a
shmem: unify regular and tiny shmem

tiny-shmem shares most of its 130 lines of code with shmem and tends to
break when particular bits of shmem get modified.  Unifying saves code and
makes keeping these two in sync much easier.

before:
  14367     392      24   14783    39bf mm/shmem.o
    396      72       8     476     1dc mm/tiny-shmem.o

after:
  14367     392      24   14783    39bf mm/shmem.o
    412      72       8     492     1ec mm/shmem.o tiny

Signed-off-by: Matt Mackall <mpm@selenic.com>
Acked-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
init/Kconfig
mm/Makefile
mm/shmem.c
mm/tiny-shmem.c [deleted file]