]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: Take advantage of kmem_cache_zalloc() in nfs_page_alloc()
authorJesper Juhl <jj@chaosbits.net>
Thu, 9 Dec 2010 22:17:15 +0000 (23:17 +0100)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 21 Dec 2010 16:51:24 +0000 (11:51 -0500)
commit5a099067fe3816c7adc6999b9e9993a32752ff2f
tree6854846213ae2b18af8e1cd44b84fa6d3b10639f
parent8fe786f878be2a22fa4480c9152d91d2d6908657
nfs: Take advantage of kmem_cache_zalloc() in nfs_page_alloc()

Take advantage of kmem_cache_zalloc() in nfs_page_alloc(). Save a call to
memset() and a few bytes.

Before:
 [jj@dragon linux-2.6]$ size fs/nfs/pagelist.o
    text    data     bss     dec     hex filename
    1765       0       8    1773     6ed fs/nfs/pagelist.o
After:
 [jj@dragon linux-2.6]$ size fs/nfs/pagelist.o
    text    data     bss     dec     hex filename
    1749       0       8    1757     6dd fs/nfs/pagelist.o

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/pagelist.c