diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-05-21 03:40:08 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:10:01 +0300 |
commit | 01bf56a9771466147d94a013bc5678d0ed1b1382 (patch) | |
tree | 331fdb701acdcab5d337dce6358caf058d46bb0f /fs/bcachefs/six.h | |
parent | f375d6ca58d5f28b9c0a3af449a0dd640ddcc6a1 (diff) | |
download | linux-01bf56a9771466147d94a013bc5678d0ed1b1382.tar.xz |
six locks: six_lock_readers_add()
This moves a helper out of the bcachefs code that shouldn't have been
there, since it touches six lock internals.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
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 09abea29a021..6b53818ae97a 100644 --- a/fs/bcachefs/six.h +++ b/fs/bcachefs/six.h @@ -152,8 +152,6 @@ do { \ __six_lock_init((lock), #lock, &__key); \ } while (0) -#define __SIX_VAL(field, _v) (((union six_lock_state) { .field = _v }).v) - #define __SIX_LOCK(type) \ bool six_trylock_ip_##type(struct six_lock *, unsigned long); \ bool six_relock_ip_##type(struct six_lock *, u32, unsigned long); \ @@ -258,5 +256,6 @@ struct six_lock_count { }; struct six_lock_count six_lock_counts(struct six_lock *); +void six_lock_readers_add(struct six_lock *, int); #endif /* _LINUX_SIX_H */ |