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
8b9456da
Commit
8b9456da
authored
Jul 30, 2014
by
David Sterba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
btrfs: remove unused members from struct scrub_warning
Signed-off-by:
David Sterba
<
dsterba@suse.cz
>
parent
97eb6b69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
15 deletions
+2
-15
fs/btrfs/scrub.c
fs/btrfs/scrub.c
+2
-15
No files found.
fs/btrfs/scrub.c
View file @
8b9456da
...
...
@@ -177,17 +177,12 @@ struct scrub_copy_nocow_ctx {
struct
scrub_warning
{
struct
btrfs_path
*
path
;
u64
extent_item_size
;
char
*
scratch_buf
;
char
*
msg_buf
;
const
char
*
errstr
;
sector_t
sector
;
u64
logical
;
struct
btrfs_device
*
dev
;
int
msg_bufsize
;
int
scratch_bufsize
;
};
static
void
scrub_pending_bio_inc
(
struct
scrub_ctx
*
sctx
);
static
void
scrub_pending_bio_dec
(
struct
scrub_ctx
*
sctx
);
static
void
scrub_pending_trans_workers_inc
(
struct
scrub_ctx
*
sctx
);
...
...
@@ -551,7 +546,6 @@ static void scrub_print_warning(const char *errstr, struct scrub_block *sblock)
u64
ref_root
;
u32
item_size
;
u8
ref_level
;
const
int
bufsize
=
4096
;
int
ret
;
WARN_ON
(
sblock
->
page_count
<
1
);
...
...
@@ -559,18 +553,13 @@ static void scrub_print_warning(const char *errstr, struct scrub_block *sblock)
fs_info
=
sblock
->
sctx
->
dev_root
->
fs_info
;
path
=
btrfs_alloc_path
();
if
(
!
path
)
return
;
swarn
.
scratch_buf
=
kmalloc
(
bufsize
,
GFP_NOFS
);
swarn
.
msg_buf
=
kmalloc
(
bufsize
,
GFP_NOFS
);
swarn
.
sector
=
(
sblock
->
pagev
[
0
]
->
physical
)
>>
9
;
swarn
.
logical
=
sblock
->
pagev
[
0
]
->
logical
;
swarn
.
errstr
=
errstr
;
swarn
.
dev
=
NULL
;
swarn
.
msg_bufsize
=
bufsize
;
swarn
.
scratch_bufsize
=
bufsize
;
if
(
!
path
||
!
swarn
.
scratch_buf
||
!
swarn
.
msg_buf
)
goto
out
;
ret
=
extent_from_logical
(
fs_info
,
swarn
.
logical
,
path
,
&
found_key
,
&
flags
);
...
...
@@ -611,8 +600,6 @@ static void scrub_print_warning(const char *errstr, struct scrub_block *sblock)
out:
btrfs_free_path
(
path
);
kfree
(
swarn
.
scratch_buf
);
kfree
(
swarn
.
msg_buf
);
}
static
int
scrub_fixup_readpage
(
u64
inum
,
u64
offset
,
u64
root
,
void
*
fixup_ctx
)
...
...
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