Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
d826cc57
Commit
d826cc57
authored
Jan 21, 2024
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: logged_ops_format.h
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
8d52ba60
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
27 deletions
+31
-27
fs/bcachefs/bcachefs_format.h
fs/bcachefs/bcachefs_format.h
+1
-27
fs/bcachefs/logged_ops_format.h
fs/bcachefs/logged_ops_format.h
+30
-0
No files found.
fs/bcachefs/bcachefs_format.h
View file @
d826cc57
...
...
@@ -442,33 +442,6 @@ struct bch_lru {
#define LRU_ID_STRIPES (1U << 16)
/* Logged operations btree: */
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
;
};
/* Optional/variable size superblock sections: */
struct
bch_sb_field
{
...
...
@@ -502,6 +475,7 @@ struct bch_sb_field {
#include "dirent_format.h"
#include "xattr_format.h"
#include "quota_format.h"
#include "logged_ops_format.h"
#include "snapshot_format.h"
#include "subvolume_format.h"
#include "sb-counters_format.h"
...
...
fs/bcachefs/logged_ops_format.h
0 → 100644
View file @
d826cc57
/* 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 */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment