These macros are simply duplicates of the corresponding
ldlm_lock_* functions.
The patch has been generated with the coccinelle script below.
@@
expression x;
@@
- LDLM_LOCK_PUT(x)
+ ldlm_lock_put(x)
@@
expression x;
@@
- LDLM_LOCK_RELEASE(x)
+ ldlm_lock_put(x)
@@
expression x;
@@
- LDLM_LOCK_GET(x)
+ ldlm_lock_get(x)
Test-Parameters: trivial
Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: I7b24117325f61ea04618a2d45a36951773f1d566
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56013
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Patrick Farrell <patrick.farrell@oracle.com>
Reviewed-by: jsimmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
if (!work->gl_lock)
break;
- LDLM_LOCK_RELEASE(work->gl_lock);
+ ldlm_lock_put(work->gl_lock);
work->gl_lock = NULL;
}
struct ldlm_lock *lock = list_entry(pos, struct ldlm_lock,
l_res_link);
- work->gl_lock = LDLM_LOCK_GET(lock);
+ work->gl_lock = ldlm_lock_get(lock);
work->gl_flags = 0;
work->gl_desc = desc;
work->gl_interpret_reply = mgs_barrier_gl_interpret_reply;
list_for_each_entry_safe(work, tmp, &gl_list, gl_list) {
list_del(&work->gl_list);
if (work->gl_lock)
- LDLM_LOCK_RELEASE(work->gl_lock);
+ ldlm_lock_put(work->gl_lock);
OBD_FREE_PTR(work);
}