]> git.baikalelectronics.ru Git - kernel.git/commit
lockd: rename lockd_create_svc() to lockd_get()
authorNeilBrown <neilb@suse.de>
Mon, 29 Nov 2021 04:51:25 +0000 (15:51 +1100)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 13 Dec 2021 18:42:56 +0000 (13:42 -0500)
commitecd3ad68d2c6d3ae178a63a2d9a02c392904fd36
treeda2d319905a9a9d90cdd536ddb587c25934bbf7e
parent865b674069e05e5779fcf8cf7a166d2acb7e930b
lockd: rename lockd_create_svc() to lockd_get()

lockd_create_svc() already does an svc_get() if the service already
exists, so it is more like a "get" than a "create".

So:
 - Move the increment of nlmsvc_users into the function as well
 - rename to lockd_get().

It is now the inverse of lockd_put().

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/lockd/svc.c