linux/drivers/block/drbd
Julia Lawall 2db4e42eac drivers/block/drbd: Use kzalloc
Use kzalloc rather than the combination of kmalloc and memset.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression x,size,flags;
statement S;
@@

-x = kmalloc(size,flags);
+x = kzalloc(size,flags);
 if (x == NULL) S
-memset(x, 0, size);
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
2010-05-18 02:04:10 +02:00
..
drbd_actlog.c drbd: lc_element_by_index() never returns NULL 2010-04-02 08:40:33 +02:00
drbd_bitmap.c drbd: Fixed bitmap in case of online-grow without resync 2010-05-18 01:20:33 +02:00
drbd_int.h drbd: Create new current UUID as late as possible 2010-05-18 02:03:49 +02:00
drbd_main.c drbd: Create new current UUID as late as possible 2010-05-18 02:03:49 +02:00
drbd_nl.c drivers/block/drbd: Use kzalloc 2010-05-18 02:04:10 +02:00
drbd_proc.c drbd: Fixes to the new delay_probes code 2010-05-18 01:28:08 +02:00
drbd_receiver.c drbd: Create new current UUID as late as possible 2010-05-18 02:03:49 +02:00
drbd_req.c drbd: If we detect late that IO got frozen, retry after we thawed. 2010-05-18 02:03:32 +02:00
drbd_req.h tree-wide: Assorted spelling fixes 2010-02-09 11:13:56 +01:00
drbd_strings.c drbd: don't start a resync without access to up-to-date Data 2010-05-18 01:08:18 +02:00
drbd_vli.h
drbd_worker.c drbd: allow resync requests to be larger than max_segment_size 2010-05-18 02:02:36 +02:00
drbd_wrappers.h drbd: Allow drbd_epoch_entries to use multiple bios. 2010-05-18 02:01:23 +02:00
Kconfig drbd: Kconfig fix 2009-12-29 17:38:28 +01:00
Makefile drbd: remove tracing bits 2009-10-01 21:17:58 +02:00