Home
last modified time | relevance | path

Searched refs:newsize (Results 1 – 4 of 4) sorted by relevance

/drivers/md/bcache/
Dbset.c31 unsigned newsize = oldsize + 2 + nptrs; in bch_keylist_realloc() local
39 if (newsize * sizeof(uint64_t) > block_bytes(c) - sizeof(struct jset)) in bch_keylist_realloc()
42 newsize = roundup_pow_of_two(newsize); in bch_keylist_realloc()
44 if (newsize <= KEYLIST_INLINE || in bch_keylist_realloc()
45 roundup_pow_of_two(oldsize) == newsize) in bch_keylist_realloc()
49 sizeof(uint64_t) * newsize, GFP_NOIO); in bch_keylist_realloc()
/drivers/md/
Draid5.c1550 static int resize_stripes(struct r5conf *conf, int newsize) in resize_stripes() argument
1583 if (newsize <= conf->pool_size) in resize_stripes()
1592 sizeof(struct stripe_head)+(newsize-1)*sizeof(struct r5dev), in resize_stripes()
1631 for( ; i<newsize; i++) in resize_stripes()
1642 ndisks = kzalloc(newsize * sizeof(struct disk_info), GFP_NOIO); in resize_stripes()
1652 conf->scribble_len = scribble_len(newsize); in resize_stripes()
1675 for (i=conf->raid_disks; i < newsize; i++) in resize_stripes()
1688 conf->pool_size = newsize; in resize_stripes()
5859 sector_t newsize; in raid5_resize() local
5861 newsize = raid5_size(mddev, sectors, mddev->raid_disks); in raid5_resize()
[all …]
Draid1.c2888 sector_t newsize = raid1_size(mddev, sectors, 0); in raid1_resize() local
2890 mddev->array_sectors > newsize) in raid1_resize()
2893 int ret = bitmap_resize(mddev->bitmap, newsize, 0, 0); in raid1_resize()
2897 md_set_array_sectors(mddev, newsize); in raid1_resize()
/drivers/scsi/
Ddpt_i2o.c3320 int newsize = pHba->hrt->num_entries * pHba->hrt->entry_len << 2; in adpt_i2o_hrt_get() local
3323 size = newsize; in adpt_i2o_hrt_get()