dlm: fix add_scan and del_scan usage
authorDavid Teigland <teigland@redhat.com>
Mon, 10 Jun 2024 20:18:09 +0000 (15:18 -0500)
committerDavid Teigland <teigland@redhat.com>
Mon, 10 Jun 2024 20:21:28 +0000 (15:21 -0500)
commitc217adfc8caad240ec7bed446a6a1a801d5acc6d
tree6d27e671479ce1b574a4d003bd9e659d65caa64b
parent4f5957a980d023405eb45bd31258fc8488a3acb1
dlm: fix add_scan and del_scan usage

Remove a few calls to add_scan() and del_scan() in cases where
the rsb is a dir record, so the rsb should never be placed on
the scan list at all.  Add WARN_ON to catch cases where this
is done.

Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lock.c