1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHEFS_NOCOW_LOCKING_TYPES_H
3 #define _BCACHEFS_NOCOW_LOCKING_TYPES_H
5 #define BUCKET_NOCOW_LOCKS_BITS 10
6 #define BUCKET_NOCOW_LOCKS (1U << BUCKET_NOCOW_LOCKS_BITS)
8 struct nocow_lock_bucket
{
9 struct closure_waitlist wait
;
13 } __aligned(SMP_CACHE_BYTES
);
15 struct bucket_nocow_lock_table
{
16 struct nocow_lock_bucket l
[BUCKET_NOCOW_LOCKS
];
19 #endif /* _BCACHEFS_NOCOW_LOCKING_TYPES_H */