diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2017-03-06 13:17:20 -0900 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2017-03-17 19:49:20 -0800 |
commit | 6f9b15ead1706cc2c9690b97ca3b2d224b0c9fe5 (patch) | |
tree | 5c74c1e473449bea4b05a5955b24c402806995b7 | |
parent | 88635c817a3228fd942e562e2ac7464e1399d81f (diff) |
bcachefs: Revert find_empty_buckets() optimization due to bugs
-rw-r--r-- | fs/bcachefs/alloc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/bcachefs/alloc.c b/fs/bcachefs/alloc.c index 0f417be81c13..2f6f7347d3f5 100644 --- a/fs/bcachefs/alloc.c +++ b/fs/bcachefs/alloc.c @@ -851,6 +851,8 @@ static int bch_allocator_thread(void *arg) set_freezable(); + bch_find_empty_buckets(c, ca); + while (1) { /* * First, we pull buckets off of the free_inc list, possibly @@ -895,7 +897,7 @@ static int bch_allocator_thread(void *arg) * See if we have buckets we can reuse without invalidating them * or forcing a journal commit: */ - bch_find_empty_buckets(c, ca); + //bch_find_empty_buckets(c, ca); if (fifo_used(&ca->free_inc) * 2 > ca->free_inc.size) { up_read(&c->gc_lock); |