提交 b6dfa35b 编写于 作者: D David Sterba

btrfs: embed tree_mod_move structure to tree_mod_elem

The tree_mod_move is not used anywhere and can be embedded as anonymous
structure.
Signed-off-by: NDavid Sterba <dsterba@suse.com>
上级 a446a979
...@@ -299,11 +299,6 @@ enum mod_log_op { ...@@ -299,11 +299,6 @@ enum mod_log_op {
MOD_LOG_ROOT_REPLACE, MOD_LOG_ROOT_REPLACE,
}; };
struct tree_mod_move {
int dst_slot;
int nr_items;
};
struct tree_mod_root { struct tree_mod_root {
u64 logical; u64 logical;
u8 level; u8 level;
...@@ -326,7 +321,10 @@ struct tree_mod_elem { ...@@ -326,7 +321,10 @@ struct tree_mod_elem {
u64 blockptr; u64 blockptr;
/* this is used for op == MOD_LOG_MOVE_KEYS */ /* this is used for op == MOD_LOG_MOVE_KEYS */
struct tree_mod_move move; struct {
int dst_slot;
int nr_items;
} move;
/* this is used for op == MOD_LOG_ROOT_REPLACE */ /* this is used for op == MOD_LOG_ROOT_REPLACE */
struct tree_mod_root old_root; struct tree_mod_root old_root;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册