Hi Damien,
On 04/03/2019 08:04, Damien Le Moal wrote:
> @@ -2765,9 +2765,11 @@ static int init_blkz_info(struct f2fs_sb_info *sbi,
> int devi)
> if (nr_sectors & (bdev_zone_sectors(bdev) - 1))
> FDEV(devi).nr_blkz++;
>
> - FDEV(devi).blkz_type = f2fs_kmalloc(sbi, FDEV(devi).nr_blkz,
> - GFP_KERNEL);
> - if (!FDEV(devi).blkz_type)
> + FDEV(devi).blkz_seq = f2fs_kzalloc(sbi,
> + BITS_TO_LONGS(FDEV(devi).nr_blkz)
> + * sizeof(unsigned long),
> + GFP_KERNEL);
> + if (!FDEV(devi).blkz_seq)
> return -ENOMEM;
Not so sure about F2FS internals, but there is a bitmap_zalloc() in the
normal kernel library.
Byte,
Johannes
--
Johannes Thumshirn SUSE Labs Filesystems
[email protected] +49 911 74053 689
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)
Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel