diff options
author | David Sterba <dsterba@suse.com> | 2018-03-05 15:31:18 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-03-31 01:26:54 +0200 |
commit | b6dfa35bd56762581bfc60b7eb9b1a4d7d10c289 (patch) | |
tree | 8c88697b68187f7bf1743fa8a96cbf2fe4b0b2dd /fs/btrfs/ctree.c | |
parent | a446a979ff4ec6784b59583b929e4656fe2f8e32 (diff) | |
download | lwn-b6dfa35bd56762581bfc60b7eb9b1a4d7d10c289.tar.gz lwn-b6dfa35bd56762581bfc60b7eb9b1a4d7d10c289.zip |
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: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r-- | fs/btrfs/ctree.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 53dfce12e3fb..6b0192ebf01f 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c @@ -299,11 +299,6 @@ enum mod_log_op { MOD_LOG_ROOT_REPLACE, }; -struct tree_mod_move { - int dst_slot; - int nr_items; -}; - struct tree_mod_root { u64 logical; u8 level; @@ -326,7 +321,10 @@ struct tree_mod_elem { u64 blockptr; /* 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 */ struct tree_mod_root old_root; |