summaryrefslogtreecommitdiff
path: root/fs/bcachefs/six.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-08-22 06:08:53 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:09:39 +0300
commite3738c6909d69e980d8b56d33df2e438a2c1c798 (patch)
treee2b2b42ed3b76430627259f6566f12d907d9cd90 /fs/bcachefs/six.h
parent2e27f6567b2662a2f7440a651e007ebc77cdcc7a (diff)
downloadlinux-e3738c6909d69e980d8b56d33df2e438a2c1c798.tar.xz
six locks: Improve six_lock_count
six_lock_count now counts up whether a write lock held, and this patch now also correctly counts six_lock->intent_lock_recurse. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/six.h')
-rw-r--r--fs/bcachefs/six.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/bcachefs/six.h b/fs/bcachefs/six.h
index 08d0e0c7f2b4..59d796cfde43 100644
--- a/fs/bcachefs/six.h
+++ b/fs/bcachefs/six.h
@@ -206,8 +206,7 @@ void six_lock_pcpu_free(struct six_lock *);
void six_lock_pcpu_alloc(struct six_lock *);
struct six_lock_count {
- unsigned read;
- unsigned intent;
+ unsigned n[3];
};
struct six_lock_count six_lock_counts(struct six_lock *);