Replaces ldlm_{is,set,clear} macros with the direct flag
names.
The patch has been generated with the coccinelle script in
contrib/cocci/ldlm_flags.cocci.
Test-Parameters: trivial
Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: I364cb11cbbfc00f133e1193204a920233b3a1b37
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57543
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
RETURN(-ENOLCK);
}
- if (ldlm_is_ast_sent(lock)) {
+ if ((lock->l_flags & LDLM_FL_AST_SENT)) {
struct ptlrpc_service_part *svc;
timeout_t timeout;
* it's just local cancel (for stack clean up or eviction),
* don't re-trigger the reintegration.
*/
- if (!ldlm_is_local_only(lock))
+ if (!(lock->l_flags & LDLM_FL_LOCAL_ONLY))
qsd_start_reint_thread(qqi);
qqi_putref(qqi);
* don't release quota space for local cancel (stack clean
* up or eviction)
*/
- if (!ldlm_is_local_only(lock)) {
+ if (!(lock->l_flags & LDLM_FL_LOCAL_ONLY)) {
/* allocate environment */
OBD_ALLOC_PTR(env);
if (!env) {