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
a446a979
Commit
a446a979
authored
Mar 05, 2018
by
David Sterba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
btrfs: drop unused fs_info parameter from tree_mod_log_eb_move
Signed-off-by:
David Sterba
<
dsterba@suse.com
>
parent
95b757c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
fs/btrfs/ctree.c
fs/btrfs/ctree.c
+6
-7
No files found.
fs/btrfs/ctree.c
View file @
a446a979
...
@@ -859,8 +859,7 @@ tree_mod_log_eb_copy(struct btrfs_fs_info *fs_info, struct extent_buffer *dst,
...
@@ -859,8 +859,7 @@ tree_mod_log_eb_copy(struct btrfs_fs_info *fs_info, struct extent_buffer *dst,
return
ret
;
return
ret
;
}
}
static
inline
void
static
inline
void
tree_mod_log_eb_move
(
struct
extent_buffer
*
dst
,
tree_mod_log_eb_move
(
struct
btrfs_fs_info
*
fs_info
,
struct
extent_buffer
*
dst
,
int
dst_offset
,
int
src_offset
,
int
nr_items
)
int
dst_offset
,
int
src_offset
,
int
nr_items
)
{
{
int
ret
;
int
ret
;
...
@@ -3305,7 +3304,7 @@ static int balance_node_right(struct btrfs_trans_handle *trans,
...
@@ -3305,7 +3304,7 @@ static int balance_node_right(struct btrfs_trans_handle *trans,
if
(
max_push
<
push_items
)
if
(
max_push
<
push_items
)
push_items
=
max_push
;
push_items
=
max_push
;
tree_mod_log_eb_move
(
fs_info
,
dst
,
push_items
,
0
,
dst_nritems
);
tree_mod_log_eb_move
(
dst
,
push_items
,
0
,
dst_nritems
);
memmove_extent_buffer
(
dst
,
btrfs_node_key_ptr_offset
(
push_items
),
memmove_extent_buffer
(
dst
,
btrfs_node_key_ptr_offset
(
push_items
),
btrfs_node_key_ptr_offset
(
0
),
btrfs_node_key_ptr_offset
(
0
),
(
dst_nritems
)
*
(
dst_nritems
)
*
...
@@ -3424,8 +3423,8 @@ static void insert_ptr(struct btrfs_trans_handle *trans,
...
@@ -3424,8 +3423,8 @@ static void insert_ptr(struct btrfs_trans_handle *trans,
BUG_ON
(
nritems
==
BTRFS_NODEPTRS_PER_BLOCK
(
fs_info
));
BUG_ON
(
nritems
==
BTRFS_NODEPTRS_PER_BLOCK
(
fs_info
));
if
(
slot
!=
nritems
)
{
if
(
slot
!=
nritems
)
{
if
(
level
)
if
(
level
)
tree_mod_log_eb_move
(
fs_info
,
lower
,
slot
+
1
,
tree_mod_log_eb_move
(
lower
,
slot
+
1
,
slot
,
slot
,
nritems
-
slot
);
nritems
-
slot
);
memmove_extent_buffer
(
lower
,
memmove_extent_buffer
(
lower
,
btrfs_node_key_ptr_offset
(
slot
+
1
),
btrfs_node_key_ptr_offset
(
slot
+
1
),
btrfs_node_key_ptr_offset
(
slot
),
btrfs_node_key_ptr_offset
(
slot
),
...
@@ -4897,8 +4896,8 @@ static void del_ptr(struct btrfs_root *root, struct btrfs_path *path,
...
@@ -4897,8 +4896,8 @@ static void del_ptr(struct btrfs_root *root, struct btrfs_path *path,
nritems
=
btrfs_header_nritems
(
parent
);
nritems
=
btrfs_header_nritems
(
parent
);
if
(
slot
!=
nritems
-
1
)
{
if
(
slot
!=
nritems
-
1
)
{
if
(
level
)
if
(
level
)
tree_mod_log_eb_move
(
fs_info
,
parent
,
slot
,
tree_mod_log_eb_move
(
parent
,
slot
,
slot
+
1
,
slot
+
1
,
nritems
-
slot
-
1
);
nritems
-
slot
-
1
);
memmove_extent_buffer
(
parent
,
memmove_extent_buffer
(
parent
,
btrfs_node_key_ptr_offset
(
slot
),
btrfs_node_key_ptr_offset
(
slot
),
btrfs_node_key_ptr_offset
(
slot
+
1
),
btrfs_node_key_ptr_offset
(
slot
+
1
),
...
...
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