]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Merge the condition to avoid additional invocation
authorAlan Huang <mmpgouride@gmail.com>
Wed, 25 Sep 2024 16:45:00 +0000 (00:45 +0800)
committerKent Overstreet <kent.overstreet@linux.dev>
Tue, 14 Jan 2025 15:45:08 +0000 (10:45 -0500)
commitcdc419dbf286eeaabb361d5cf5cee2cb566b6f5f
treec8b8296001611d42d35297a9d11c845c1944e0bb
parent9c13cc9c7dd7852ab5080f735f896b4e2ac7e9d4
bcachefs: Merge the condition to avoid additional invocation

If the lock has been acquired and unlocked, we don't have to do clear
and wakeup again, though harmless since we hold the intent lock. Merge
the condition might be clearer.

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