projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
688892b
)
bcache: fix error return value in memory shrink
author
Tang Junhui
<tang.junhui@zte.com.cn>
Mon, 19 Mar 2018 00:36:21 +0000
(17:36 -0700)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 19 Mar 2018 02:15:20 +0000
(20:15 -0600)
In bch_mca_scan(), the return value should not be the number of freed btree
nodes, but the number of pages of freed btree nodes.
Signed-off-by: Tang Junhui <tang.junhui@zte.com.cn>
Reviewed-by: Michael Lyle <mlyle@lyle.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/btree.c
patch
|
blob
|
history
diff --git
a/drivers/md/bcache/btree.c
b/drivers/md/bcache/btree.c
index
39cc8a5
..
b2d4899
100644
(file)
--- a/
drivers/md/bcache/btree.c
+++ b/
drivers/md/bcache/btree.c
@@
-719,7
+719,7
@@
static unsigned long bch_mca_scan(struct shrinker *shrink,
}
out:
mutex_unlock(&c->bucket_lock);
- return freed;
+ return freed
* c->btree_pages
;
}
static unsigned long bch_mca_count(struct shrinker *shrink,