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
b0f32a56
Commit
b0f32a56
authored
Dec 10, 2013
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcache: Minor btree cache fix
Signed-off-by:
Kent Overstreet
<
kmo@daterainc.com
>
parent
5775e213
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
drivers/md/bcache/btree.c
drivers/md/bcache/btree.c
+3
-7
No files found.
drivers/md/bcache/btree.c
View file @
b0f32a56
...
...
@@ -714,14 +714,10 @@ static unsigned long bch_mca_scan(struct shrinker *shrink,
}
}
/*
* Can happen right when we first start up, before we've read in any
* btree nodes
*/
if
(
list_empty
(
&
c
->
btree_cache
))
goto
out
;
for
(
i
=
0
;
(
nr
--
)
&&
i
<
c
->
bucket_cache_used
;
i
++
)
{
if
(
list_empty
(
&
c
->
btree_cache
))
goto
out
;
b
=
list_first_entry
(
&
c
->
btree_cache
,
struct
btree
,
list
);
list_rotate_left
(
&
c
->
btree_cache
);
...
...
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