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
nexedi
linux
Commits
c19ed23a
Commit
c19ed23a
authored
Mar 26, 2013
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcache: Sparse fixes
Signed-off-by:
Kent Overstreet
<
koverstreet@google.com
>
parent
169ef1cf
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
92 additions
and
90 deletions
+92
-90
drivers/md/bcache/btree.c
drivers/md/bcache/btree.c
+1
-1
drivers/md/bcache/debug.c
drivers/md/bcache/debug.c
+1
-1
drivers/md/bcache/journal.c
drivers/md/bcache/journal.c
+2
-0
drivers/md/bcache/util.c
drivers/md/bcache/util.c
+88
-88
No files found.
drivers/md/bcache/btree.c
View file @
c19ed23a
...
...
@@ -130,7 +130,7 @@ static uint64_t btree_csum_set(struct btree *b, struct bset *i)
void
*
data
=
(
void
*
)
i
+
8
,
*
end
=
end
(
i
);
crc
=
bch_crc64_update
(
crc
,
data
,
end
-
data
);
return
crc
^
0xffffffffffffffff
;
return
crc
^
0xffffffffffffffff
ULL
;
}
static
void
btree_bio_endio
(
struct
bio
*
bio
,
int
error
)
...
...
drivers/md/bcache/debug.c
View file @
c19ed23a
...
...
@@ -82,7 +82,7 @@ struct keyprint_hack bch_pbtree(const struct btree *b)
{
struct
keyprint_hack
r
;
snprintf
(
r
.
s
,
40
,
"%
li
level %i/%i"
,
PTR_BUCKET_NR
(
b
->
c
,
&
b
->
key
,
0
),
snprintf
(
r
.
s
,
40
,
"%
zu
level %i/%i"
,
PTR_BUCKET_NR
(
b
->
c
,
&
b
->
key
,
0
),
b
->
level
,
b
->
c
->
root
?
b
->
c
->
root
->
level
:
-
1
);
return
r
;
}
...
...
drivers/md/bcache/journal.c
View file @
c19ed23a
...
...
@@ -563,6 +563,7 @@ static void journal_write_done(struct closure *cl)
}
static
void
journal_write_unlocked
(
struct
closure
*
cl
)
__releases
(
c
->
journal
.
lock
)
{
struct
cache_set
*
c
=
container_of
(
cl
,
struct
cache_set
,
journal
.
io
.
cl
);
struct
cache
*
ca
;
...
...
@@ -652,6 +653,7 @@ static void journal_write(struct closure *cl)
}
static
void
__journal_try_write
(
struct
cache_set
*
c
,
bool
noflush
)
__releases
(
c
->
journal
.
lock
)
{
struct
closure
*
cl
=
&
c
->
journal
.
io
.
cl
;
...
...
drivers/md/bcache/util.c
View file @
c19ed23a
This diff is collapsed.
Click to expand it.
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