btree_iter.c (e131b6aa0a316f9724e6e8ad2f9be091c07115a7) | btree_iter.c (9620c3ec2fa83e18f52e99b3dd2e8451446ca17e) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2 3#include "bcachefs.h" 4#include "bkey_methods.h" 5#include "bkey_buf.h" 6#include "btree_cache.h" 7#include "btree_iter.h" 8#include "btree_key_cache.h" --- 2323 unchanged lines hidden (view full) --- 2332 list_del(&trans->list); 2333 mutex_unlock(&trans->c->btree_trans_lock); 2334#endif 2335 2336 srcu_read_unlock(&c->btree_trans_barrier, trans->srcu_idx); 2337 2338 bch2_journal_preres_put(&trans->c->journal, &trans->journal_preres); 2339 | 1// SPDX-License-Identifier: GPL-2.0 2 3#include "bcachefs.h" 4#include "bkey_methods.h" 5#include "bkey_buf.h" 6#include "btree_cache.h" 7#include "btree_iter.h" 8#include "btree_key_cache.h" --- 2323 unchanged lines hidden (view full) --- 2332 list_del(&trans->list); 2333 mutex_unlock(&trans->c->btree_trans_lock); 2334#endif 2335 2336 srcu_read_unlock(&c->btree_trans_barrier, trans->srcu_idx); 2337 2338 bch2_journal_preres_put(&trans->c->journal, &trans->journal_preres); 2339 |
2340 kfree(trans->fs_usage_deltas); | 2340 if (trans->fs_usage_deltas) { 2341 if (trans->fs_usage_deltas->size + sizeof(trans->fs_usage_deltas) == 2342 REPLICAS_DELTA_LIST_MAX) 2343 mempool_free(trans->fs_usage_deltas, 2344 &trans->c->replicas_delta_pool); 2345 else 2346 kfree(trans->fs_usage_deltas); 2347 } |
2341 2342 if (trans->mem_bytes == BTREE_TRANS_MEM_MAX) 2343 mempool_free(trans->mem, &trans->c->btree_trans_mem_pool); 2344 else 2345 kfree(trans->mem); 2346 2347#ifdef __KERNEL__ 2348 /* --- 100 unchanged lines hidden --- | 2348 2349 if (trans->mem_bytes == BTREE_TRANS_MEM_MAX) 2350 mempool_free(trans->mem, &trans->c->btree_trans_mem_pool); 2351 else 2352 kfree(trans->mem); 2353 2354#ifdef __KERNEL__ 2355 /* --- 100 unchanged lines hidden --- |