forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
- Loading branch information
Kent Overstreet
committed
Jan 21, 2024
1 parent
8d52ba6
commit d826cc5
Showing
2 changed files
with
31 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
#ifndef _BCACHEFS_LOGGED_OPS_FORMAT_H | ||
#define _BCACHEFS_LOGGED_OPS_FORMAT_H | ||
|
||
struct bch_logged_op_truncate { | ||
struct bch_val v; | ||
__le32 subvol; | ||
__le32 pad; | ||
__le64 inum; | ||
__le64 new_i_size; | ||
}; | ||
|
||
enum logged_op_finsert_state { | ||
LOGGED_OP_FINSERT_start, | ||
LOGGED_OP_FINSERT_shift_extents, | ||
LOGGED_OP_FINSERT_finish, | ||
}; | ||
|
||
struct bch_logged_op_finsert { | ||
struct bch_val v; | ||
__u8 state; | ||
__u8 pad[3]; | ||
__le32 subvol; | ||
__le64 inum; | ||
__le64 dst_offset; | ||
__le64 src_offset; | ||
__le64 pos; | ||
}; | ||
|
||
#endif /* _BCACHEFS_LOGGED_OPS_FORMAT_H */ |