diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2010-12-14 15:05:23 +0000 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-12-16 12:37:26 -0500 |
commit | a7952f4056d4d9c63c70534bcfd4f2c11e487000 (patch) | |
tree | 0b622ff71d92abb3f6ec3d09fc3ed9c3624282ed /crypto/compress.c | |
parent | b10e30f6559978e3c8ca2a70c1cb35d6680a4021 (diff) |
lockd: Add nlm_alloc_host()
Refactor nlm_host allocation and initialization into a separate
function. This will be the common piece of server and client nlm_host
lookup logic after the nlm_host cache is split.
Small change: use kmalloc() instead of kzalloc(), as we're overwriting
almost all fields in the new nlm_host struct with non-zero values
immediately after it is allocated. An added benefit is we now have an
explicit reference to each field name where it is initialized (for all
you cscope fans out there).
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'crypto/compress.c')
0 files changed, 0 insertions, 0 deletions