diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2008-04-30 00:54:54 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-30 08:29:53 -0700 |
commit | 354a1f4d99240f53980275416ca3e1ac2ee73d5d (patch) | |
tree | 2c595555d897a5cc09b6449cb0cd3aac9c11ac79 /include | |
parent | 487798df6d25e76ed6558b3e17c44cf0458cc6f3 (diff) | |
download | linux-stable-354a1f4d99240f53980275416ca3e1ac2ee73d5d.tar.gz linux-stable-354a1f4d99240f53980275416ca3e1ac2ee73d5d.tar.bz2 linux-stable-354a1f4d99240f53980275416ca3e1ac2ee73d5d.zip |
alloc_uid: cleanup
Use kmem_cache_zalloc(), remove large amounts of initialisation code and
ifdeffery.
Note: this assumes that memset(*atomic_t, 0) correctly initialises the
atomic_t. This is true for all present archtiectures and if it becomes false
for a future architecture then we'll need to make large changes all over the
place anyway.
Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions