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
f5c8daa5
Commit
f5c8daa5
authored
Mar 20, 2019
by
David Sterba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
btrfs: remove unused parameter fs_info from btrfs_set_disk_extent_flags
Signed-off-by:
David Sterba
<
dsterba@suse.com
>
parent
c6e340bc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
fs/btrfs/ctree.c
fs/btrfs/ctree.c
+1
-1
fs/btrfs/ctree.h
fs/btrfs/ctree.h
+0
-1
fs/btrfs/extent-tree.c
fs/btrfs/extent-tree.c
+1
-2
No files found.
fs/btrfs/ctree.c
View file @
f5c8daa5
...
...
@@ -948,7 +948,7 @@ static noinline int update_ref_for_cow(struct btrfs_trans_handle *trans,
if
(
new_flags
!=
0
)
{
int
level
=
btrfs_header_level
(
buf
);
ret
=
btrfs_set_disk_extent_flags
(
trans
,
fs_info
,
ret
=
btrfs_set_disk_extent_flags
(
trans
,
buf
->
start
,
buf
->
len
,
new_flags
,
level
,
0
);
...
...
fs/btrfs/ctree.h
View file @
f5c8daa5
...
...
@@ -2746,7 +2746,6 @@ int btrfs_inc_ref(struct btrfs_trans_handle *trans, struct btrfs_root *root,
int
btrfs_dec_ref
(
struct
btrfs_trans_handle
*
trans
,
struct
btrfs_root
*
root
,
struct
extent_buffer
*
buf
,
int
full_backref
);
int
btrfs_set_disk_extent_flags
(
struct
btrfs_trans_handle
*
trans
,
struct
btrfs_fs_info
*
fs_info
,
u64
bytenr
,
u64
num_bytes
,
u64
flags
,
int
level
,
int
is_data
);
int
btrfs_free_extent
(
struct
btrfs_trans_handle
*
trans
,
struct
btrfs_ref
*
ref
);
...
...
fs/btrfs/extent-tree.c
View file @
f5c8daa5
...
...
@@ -2933,7 +2933,6 @@ int btrfs_run_delayed_refs(struct btrfs_trans_handle *trans,
}
int
btrfs_set_disk_extent_flags
(
struct
btrfs_trans_handle
*
trans
,
struct
btrfs_fs_info
*
fs_info
,
u64
bytenr
,
u64
num_bytes
,
u64
flags
,
int
level
,
int
is_data
)
{
...
...
@@ -8804,7 +8803,7 @@ static noinline int walk_down_proc(struct btrfs_trans_handle *trans,
BUG_ON
(
ret
);
/* -ENOMEM */
ret
=
btrfs_dec_ref
(
trans
,
root
,
eb
,
0
);
BUG_ON
(
ret
);
/* -ENOMEM */
ret
=
btrfs_set_disk_extent_flags
(
trans
,
fs_info
,
eb
->
start
,
ret
=
btrfs_set_disk_extent_flags
(
trans
,
eb
->
start
,
eb
->
len
,
flag
,
btrfs_header_level
(
eb
),
0
);
BUG_ON
(
ret
);
/* -ENOMEM */
...
...
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