lockd: get host reference in nlmsvc_create_block() instead of callers
authorJ. Bruce Fields <bfields@citi.umich.edu>
Tue, 15 Jul 2008 19:05:45 +0000 (15:05 -0400)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Tue, 15 Jul 2008 19:40:25 +0000 (15:40 -0400)
commit560de0e65904db392e1c443c4bf5ee750573336b
tree1d6fcfe7fadd5b20ac2f70db6d45d4f8391023f9
parent6d7bbbbacc5202eaabbc232681cc325b22a73eeb
lockd: get host reference in nlmsvc_create_block() instead of callers

It may not be obvious (till you look at the definition of
nlm_alloc_call()) that a function like nlmsvc_create_block() should
consume a reference on success or failure, so I find it clearer if it
takes the reference it needs itself.

And both callers already do this immediately before the call anyway.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/lockd/svclock.c