six locks: Simplify six_relock()
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 16 Jun 2023 19:00:48 +0000 (15:00 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:02 +0000 (17:10 -0400)
commitdc88b65f3e54b5f25dcfe1259ae21c19a6e69d7f
treeebff7bfc8448bf85dafcd47ae556828a9a5b3124
parent37f612bea5bd921e71537df3559a117dffb0956d
six locks: Simplify six_relock()

The next patch is going to move lock->seq out of lock->state. This
replaces six_relock() with a much simpler implementation based on
trylock.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/six.c