dlm: return -ENOENT if no comm was found
authorAlexander Aring <aahringo@redhat.com>
Mon, 2 Dec 2024 15:26:41 +0000 (10:26 -0500)
committerDavid Teigland <teigland@redhat.com>
Thu, 19 Dec 2024 19:11:24 +0000 (13:11 -0600)
commit6784ed98fde5b7538fff6b329b686b119ca23d8b
tree239c2ce614b6794d58ff17bd12319b709eabeb4b
parent57cdd1a1cf1464199678f9338049b63fb5d5b41c
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 <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/config.c