mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-08 15:04:45 +00:00
183bcc89b8
__bch2_btree_write_buffer_flush() now assumes a write ref is already held (as called by the transaction commit path); and the wrappers bch2_write_buffer_flush() and flush_sync() take an explicit write ref. This means internally the write buffer code can always use BTREE_INSERT_NOCHECK_RW, instead of in the previous code passing flags around and hoping the NOCHECK_RW flag was always carried around correctly. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
16 lines
589 B
C
16 lines
589 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _BCACHEFS_BTREE_WRITE_BUFFER_H
|
|
#define _BCACHEFS_BTREE_WRITE_BUFFER_H
|
|
|
|
int bch2_btree_write_buffer_flush_nocheck_rw(struct btree_trans *);
|
|
int __bch2_btree_write_buffer_flush(struct btree_trans *, bool);
|
|
int bch2_btree_write_buffer_flush_sync(struct btree_trans *);
|
|
int bch2_btree_write_buffer_flush(struct btree_trans *);
|
|
|
|
int bch2_btree_insert_keys_write_buffer(struct btree_trans *);
|
|
|
|
void bch2_fs_btree_write_buffer_exit(struct bch_fs *);
|
|
int bch2_fs_btree_write_buffer_init(struct bch_fs *);
|
|
|
|
#endif /* _BCACHEFS_BTREE_WRITE_BUFFER_H */
|