diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c index ad3f57c..df6b83c 100644 --- a/fs/ext4/balloc.c +++ b/fs/ext4/balloc.c @@ -1981,7 +1981,7 @@ int ext4_reserve_init(struct super_block *sb) struct ext4_reservation_slot *rs; int i; - rs = percpu_alloc(sizeof(struct ext4_reservation_slot), GFP_KERNEL); + rs = alloc_percpu(struct ext4_reservation_slot); if (rs == NULL) return -ENOMEM; sbi->s_reservation_slots = rs;