From: Alexander Aring Date: Mon, 2 Dec 2024 15:26:41 +0000 (-0500) Subject: dlm: return -ENOENT if no comm was found X-Git-Tag: v6.14-rc1~203^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6784ed98fde5b7538fff6b329b686b119ca23d8b;p=thirdparty%2Fkernel%2Flinux.git dlm: return -ENOENT if no comm was found Currently if no comm can be found dlm_comm_seq() returns -EEXIST which means entry already exists for a lookup it makes no sense to return -EEXIST. We change it to -ENOENT. There is no user that will evaluate the return value on a specific value so this should be fine. Signed-off-by: Alexander Aring Signed-off-by: David Teigland --- diff --git a/fs/dlm/config.c b/fs/dlm/config.c index b2f21aa007195..cf9ba6fd7a281 100644 --- a/fs/dlm/config.c +++ b/fs/dlm/config.c @@ -935,7 +935,7 @@ int dlm_comm_seq(int nodeid, uint32_t *seq, bool locked) mutex_unlock(&clusters_root.subsys.su_mutex); } if (!cm) - return -EEXIST; + return -ENOENT; *seq = cm->seq; put_comm(cm);