diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-12-15 02:52:11 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:09:52 +0200 |
commit | 350175bf9b0fe5da12a2fd8bfd453a49f038ceb4 (patch) | |
tree | 6118c2363f0ee7570b8d9ac6440b13217b8c322e /fs/bcachefs/data_update.c | |
parent | bcachefs: handle failed data_update_init cleanup (diff) | |
download | linux-350175bf9b0fe5da12a2fd8bfd453a49f038ceb4.tar.xz linux-350175bf9b0fe5da12a2fd8bfd453a49f038ceb4.zip |
bcachefs: Improved nocow locking
This improves the nocow lock table so that hash table entries have
multiple locks, and locks specify which bucket they're for - i.e. we can
now resolve hash collisions.
This is important because the allocator has to skip buckets that are
locked in the nocow lock table, and previously hash collisions would
cause it to spuriously skip unlocked buckets.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/data_update.c')
-rw-r--r-- | fs/bcachefs/data_update.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/data_update.c b/fs/bcachefs/data_update.c index 190ad03910af..eb248968de48 100644 --- a/fs/bcachefs/data_update.c +++ b/fs/bcachefs/data_update.c @@ -11,6 +11,7 @@ #include "io.h" #include "keylist.h" #include "move.h" +#include "nocow_locking.h" #include "subvolume.h" #include "trace.h" |