projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bcache: add bucket_size_hi into struct cache_sb_disk for large bucket
[platform/kernel/linux-starfive.git]
/
drivers
/
md
/
bcache
/
alloc.c
diff --git
a/drivers/md/bcache/alloc.c
b/drivers/md/bcache/alloc.c
index
a1df0d9
..
52035a7
100644
(file)
--- a/
drivers/md/bcache/alloc.c
+++ b/
drivers/md/bcache/alloc.c
@@
-87,7
+87,7
@@
void bch_rescale_priorities(struct cache_set *c, int sectors)
{
struct cache *ca;
struct bucket *b;
- unsigned
int
next = c->nbuckets * c->sb.bucket_size / 1024;
+ unsigned
long
next = c->nbuckets * c->sb.bucket_size / 1024;
unsigned int i;
int r;