diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2026-02-21 17:06:51 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2026-02-21 17:09:51 -0800 |
| commit | 323bbfcf1ef8836d0d2ad9e2c1f1c684f0e3b5b3 (patch) | |
| tree | 515dca34daa8d18ec26c2c3da3096c6c23955c95 /drivers/md | |
| parent | bf4afc53b77aeaa48b5409da5c8da6bb4eff7f43 (diff) | |
Convert 'alloc_flex' family to use the new default GFP_KERNEL argument
This is the exact same thing as the 'alloc_obj()' version, only much
smaller because there are a lot fewer users of the *alloc_flex()
interface.
As with alloc_obj() version, this was done entirely with mindless brute
force, using the same script, except using 'flex' in the pattern rather
than 'objs*'.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/md')
| -rw-r--r-- | drivers/md/dm-bio-prison-v1.c | 2 | ||||
| -rw-r--r-- | drivers/md/dm-crypt.c | 2 | ||||
| -rw-r--r-- | drivers/md/dm-raid.c | 2 | ||||
| -rw-r--r-- | drivers/md/dm-raid1.c | 2 | ||||
| -rw-r--r-- | drivers/md/dm-stripe.c | 2 | ||||
| -rw-r--r-- | drivers/md/dm-switch.c | 2 | ||||
| -rw-r--r-- | drivers/md/md-linear.c | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/drivers/md/dm-bio-prison-v1.c b/drivers/md/dm-bio-prison-v1.c index 29b916c05082..4d1464dae5eb 100644 --- a/drivers/md/dm-bio-prison-v1.c +++ b/drivers/md/dm-bio-prison-v1.c @@ -44,7 +44,7 @@ struct dm_bio_prison *dm_bio_prison_create(void) struct dm_bio_prison *prison; num_locks = dm_num_hash_locks(); - prison = kzalloc_flex(*prison, regions, num_locks, GFP_KERNEL); + prison = kzalloc_flex(*prison, regions, num_locks); if (!prison) return NULL; prison->num_locks = num_locks; diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c index 9a17b3b603d1..00d36d4aca52 100644 --- a/drivers/md/dm-crypt.c +++ b/drivers/md/dm-crypt.c @@ -3237,7 +3237,7 @@ static int crypt_ctr(struct dm_target *ti, unsigned int argc, char **argv) return -EINVAL; } - cc = kzalloc_flex(*cc, key, key_size, GFP_KERNEL); + cc = kzalloc_flex(*cc, key, key_size); if (!cc) { ti->error = "Cannot allocate encryption context"; return -ENOMEM; diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c index 939d403fda30..c5dc083c7244 100644 --- a/drivers/md/dm-raid.c +++ b/drivers/md/dm-raid.c @@ -744,7 +744,7 @@ static struct raid_set *raid_set_alloc(struct dm_target *ti, struct raid_type *r return ERR_PTR(-EINVAL); } - rs = kzalloc_flex(*rs, dev, raid_devs, GFP_KERNEL); + rs = kzalloc_flex(*rs, dev, raid_devs); if (!rs) { ti->error = "Cannot allocate raid context"; return ERR_PTR(-ENOMEM); diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c index 9fb2182ef287..80a5c4127707 100644 --- a/drivers/md/dm-raid1.c +++ b/drivers/md/dm-raid1.c @@ -890,7 +890,7 @@ static struct mirror_set *alloc_context(unsigned int nr_mirrors, struct dm_dirty_log *dl) { struct mirror_set *ms = - kzalloc_flex(*ms, mirror, nr_mirrors, GFP_KERNEL); + kzalloc_flex(*ms, mirror, nr_mirrors); if (!ms) { ti->error = "Cannot allocate mirror context"; diff --git a/drivers/md/dm-stripe.c b/drivers/md/dm-stripe.c index e06bb1f7518e..750865fd3ae7 100644 --- a/drivers/md/dm-stripe.c +++ b/drivers/md/dm-stripe.c @@ -129,7 +129,7 @@ static int stripe_ctr(struct dm_target *ti, unsigned int argc, char **argv) return -EINVAL; } - sc = kmalloc_flex(*sc, stripe, stripes, GFP_KERNEL); + sc = kmalloc_flex(*sc, stripe, stripes); if (!sc) { ti->error = "Memory allocation for striped context failed"; return -ENOMEM; diff --git a/drivers/md/dm-switch.c b/drivers/md/dm-switch.c index 00dffd4a9ea8..5952f02de1e6 100644 --- a/drivers/md/dm-switch.c +++ b/drivers/md/dm-switch.c @@ -62,7 +62,7 @@ static struct switch_ctx *alloc_switch_ctx(struct dm_target *ti, unsigned int nr { struct switch_ctx *sctx; - sctx = kzalloc_flex(*sctx, path_list, nr_paths, GFP_KERNEL); + sctx = kzalloc_flex(*sctx, path_list, nr_paths); if (!sctx) return NULL; diff --git a/drivers/md/md-linear.c b/drivers/md/md-linear.c index beeb88274da4..fdff250d0d51 100644 --- a/drivers/md/md-linear.c +++ b/drivers/md/md-linear.c @@ -92,7 +92,7 @@ static struct linear_conf *linear_conf(struct mddev *mddev, int raid_disks) int cnt; int i; - conf = kzalloc_flex(*conf, disks, raid_disks, GFP_KERNEL); + conf = kzalloc_flex(*conf, disks, raid_disks); if (!conf) return ERR_PTR(-ENOMEM); |
