bcache: add bucket_size_hi into struct cache_sb_disk for large bucket
[platform/kernel/linux-starfive.git] / drivers / md / bcache / alloc.c
index a1df0d9..52035a7 100644 (file)
@@ -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;