diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-08-21 23:08:53 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:39 -0400 |
commit | e3738c6909d69e980d8b56d33df2e438a2c1c798 (patch) | |
tree | e2b2b42ed3b76430627259f6566f12d907d9cd90 /fs/bcachefs/six.h | |
parent | 2e27f6567b2662a2f7440a651e007ebc77cdcc7a (diff) | |
download | linux-e3738c6909d69e980d8b56d33df2e438a2c1c798.tar.gz linux-e3738c6909d69e980d8b56d33df2e438a2c1c798.tar.bz2 linux-e3738c6909d69e980d8b56d33df2e438a2c1c798.zip |
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.h | 3 |
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 *); |