]> Git Repo - J-linux.git/blob - fs/bcachefs/logged_ops.h
Merge tag 'vfs-6.13-rc7.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs
[J-linux.git] / fs / bcachefs / logged_ops.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHEFS_LOGGED_OPS_H
3 #define _BCACHEFS_LOGGED_OPS_H
4
5 #include "bkey.h"
6
7 #define BCH_LOGGED_OPS()                        \
8         x(truncate)                             \
9         x(finsert)
10
11 static inline int bch2_logged_op_update(struct btree_trans *trans, struct bkey_i *op)
12 {
13         return bch2_btree_insert_nonextent(trans, BTREE_ID_logged_ops, op, 0);
14 }
15
16 int bch2_resume_logged_ops(struct bch_fs *);
17 int bch2_logged_op_start(struct btree_trans *, struct bkey_i *);
18 int bch2_logged_op_finish(struct btree_trans *, struct bkey_i *);
19
20 #endif /* _BCACHEFS_LOGGED_OPS_H */
This page took 0.026722 seconds and 4 git commands to generate.