git: kernel: Replace all usage of MALLOC()/FREE() with kmalloc()/kfree().

Sascha Wildner swildner at crater.dragonflybsd.org
Tue Dec 6 10:23:56 PST 2011


commit 884717e1debcf4b08bda1d29d01b0c8a34b86a59
Author: Sascha Wildner <saw at online.de>
Date:   Tue Dec 6 18:58:34 2011 +0100

    kernel: Replace all usage of MALLOC()/FREE() with kmalloc()/kfree().

Summary of changes:
 sys/bus/cam/scsi/scsi_target.c                     |   20 ++---
 sys/dev/disk/md/md.c                               |   26 +++---
 sys/dev/misc/musycc/musycc.c                       |   32 +++----
 sys/dev/netif/ar/if_ar.c                           |    7 +-
 sys/dev/netif/mn/if_mn.c                           |   10 +-
 sys/dev/netif/sr/if_sr.c                           |   12 +--
 sys/emulation/43bsd/43bsd_socket.c                 |   19 ++---
 .../linux/i386/linprocfs/linprocfs_subr.c          |    7 +-
 sys/emulation/linux/linux_mib.c                    |    4 +-
 sys/emulation/linux/linux_socket.c                 |   26 +++---
 sys/gnu/vfs/ext2fs/ext2_inode.c                    |    4 +-
 sys/gnu/vfs/ext2fs/ext2_lookup.c                   |   13 ++--
 sys/gnu/vfs/ext2fs/ext2_vfsops.c                   |    4 +-
 sys/kern/kern_event.c                              |    6 +-
 sys/kern/kern_ktrace.c                             |   32 +++----
 sys/kern/kern_proc.c                               |    8 +-
 sys/kern/kern_prot.c                               |    3 +-
 sys/kern/kern_resource.c                           |    5 +-
 sys/kern/kern_subr.c                               |    4 +-
 sys/kern/subr_prf.c                                |    9 +-
 sys/kern/sys_generic.c                             |    9 +-
 sys/kern/uipc_accf.c                               |    5 +-
 sys/kern/uipc_socket.c                             |   23 +++---
 sys/kern/uipc_syscalls.c                           |   36 ++++----
 sys/kern/vfs_subr.c                                |    7 +-
 sys/net/bpf.c                                      |    2 +-
 sys/net/bsd_comp.c                                 |    7 +-
 sys/net/i4b/driver/i4b_ing.c                       |    5 +-
 sys/net/if.c                                       |   10 +--
 sys/net/if_ethersubr.c                             |    6 +-
 sys/net/pf/if_pfsync.c                             |    3 +-
 sys/net/ppp/if_ppp.c                               |    6 +-
 sys/net/ppp_layer/ppp_deflate.c                    |    9 +--
 sys/net/tun/if_tun.c                               |    2 +-
 sys/netgraph/UI/ng_UI.c                            |    9 +-
 sys/netgraph/async/ng_async.c                      |   35 ++++----
 sys/netgraph/bpf/ng_bpf.c                          |   21 ++---
 sys/netgraph/bridge/ng_bridge.c                    |   38 ++++----
 sys/netgraph/cisco/ng_cisco.c                      |   10 +-
 sys/netgraph/echo/ng_echo.c                        |    3 +-
 sys/netgraph/eiface/ng_eiface.c                    |    9 +-
 sys/netgraph/etf/ng_etf.c                          |   19 ++--
 sys/netgraph/ether/ng_ether.c                      |    9 +-
 sys/netgraph/fec/ng_fec.c                          |   30 +++----
 sys/netgraph/frame_relay/ng_frame_relay.c          |    7 +-
 sys/netgraph/iface/ng_iface.c                      |   28 +++---
 sys/netgraph/ksocket/ng_ksocket.c                  |   34 ++++----
 sys/netgraph/l2tp/ng_l2tp.c                        |   33 ++++----
 sys/netgraph/lmi/ng_lmi.c                          |   11 +--
 sys/netgraph/mppc/ng_mppc.c                        |   57 ++++++------
 sys/netgraph/netgraph.h                            |    6 +-
 sys/netgraph/netgraph/ng_base.c                    |   56 ++++++------
 sys/netgraph/netgraph/ng_parse.c                   |   28 +++---
 sys/netgraph/ng_device.c                           |    3 +-
 sys/netgraph/ng_message.h                          |    9 +-
 sys/netgraph/ng_sample.c                           |   11 +--
 sys/netgraph/one2many/ng_one2many.c                |   11 +--
 sys/netgraph/ppp/ng_ppp.c                          |   25 +++---
 sys/netgraph/pppoe/ng_pppoe.c                      |   29 +++---
 sys/netgraph/pptpgre/ng_pptpgre.c                  |   27 +++---
 sys/netgraph/rfc1490/ng_rfc1490.c                  |    9 +-
 sys/netgraph/socket/ng_socket.c                    |   27 +++---
 sys/netgraph/tee/ng_tee.c                          |   14 ++--
 sys/netgraph/tty/ng_tty.c                          |   11 +--
 sys/netgraph/vjc/ng_vjc.c                          |   11 +--
 sys/netinet/igmp.c                                 |    3 +-
 sys/netinet/in_pcb.c                               |    7 +-
 sys/netinet/sctp_asconf.c                          |   13 ++--
 sys/netinet/sctp_indata.c                          |    2 +-
 sys/netinet/sctp_input.c                           |   12 ++--
 sys/netinet/sctp_output.c                          |   28 +++----
 sys/netinet/sctp_pcb.c                             |   25 +++---
 sys/netinet/sctp_timer.c                           |    2 +-
 sys/netinet/sctp_usrreq.c                          |   22 ++---
 sys/netinet/sctputil.c                             |   23 +++---
 sys/netinet/tcp_input.c                            |    4 +-
 sys/netinet/tcp_subr.c                             |    4 +-
 sys/netinet/tcp_syncache.c                         |    5 +-
 sys/netinet6/in6.c                                 |    6 +-
 sys/netinet6/in6_pcb.c                             |    7 +-
 sys/netinet6/raw_ip6.c                             |    7 +-
 sys/netinet6/sctp6_usrreq.c                        |   16 ++--
 sys/netproto/ipsec/xform_ah.c                      |    7 +-
 sys/netproto/ipx/ipx_ip.c                          |    2 +-
 sys/netproto/ipx/ipx_pcb.c                         |    6 +-
 sys/netproto/ipx/spx_usrreq.c                      |    7 +-
 sys/netproto/natm/natm.c                           |    3 +-
 sys/netproto/natm/natm_pcb.c                       |    5 +-
 sys/netproto/ncp/ncp_conn.c                        |   14 ++--
 sys/netproto/ncp/ncp_sock.c                        |    5 +-
 sys/netproto/smb/smb_rq.c                          |    5 +-
 sys/netproto/smb/smb_trantcp.c                     |    3 +-
 sys/platform/pc32/i386/sys_machdep.c               |    9 +-
 sys/sys/uio.h                                      |    3 +-
 sys/vfs/fdesc/fdesc_vfsops.c                       |    4 +-
 sys/vfs/fdesc/fdesc_vnops.c                        |    7 +-
 sys/vfs/fifofs/fifo_vnops.c                        |    4 +-
 sys/vfs/hpfs/hpfs_subr.c                           |   27 +++---
 sys/vfs/hpfs/hpfs_vfsops.c                         |    8 +-
 sys/vfs/hpfs/hpfs_vnops.c                          |    6 +-
 sys/vfs/isofs/cd9660/cd9660_vfsops.c               |    4 +-
 sys/vfs/isofs/cd9660/cd9660_vnops.c                |   14 ++--
 sys/vfs/mfs/mfs_vfsops.c                           |    8 +-
 sys/vfs/msdosfs/msdosfs_denode.c                   |    7 +-
 sys/vfs/msdosfs/msdosfs_vnops.c                    |    3 +-
 sys/vfs/nfs/krpc_subr.c                            |    3 +-
 sys/vfs/nfs/nfs_node.c                             |   15 ++--
 sys/vfs/nfs/nfs_serv.c                             |   42 ++++-----
 sys/vfs/nfs/nfs_socket.c                           |   12 +--
 sys/vfs/nfs/nfs_srvcache.c                         |    3 +-
 sys/vfs/nfs/nfs_subs.c                             |    9 +-
 sys/vfs/nfs/nfs_syscalls.c                         |   20 ++--
 sys/vfs/nfs/nfs_vfsops.c                           |    6 +-
 sys/vfs/nfs/nfs_vnops.c                            |    4 +-
 sys/vfs/ntfs/ntfs_subr.c                           |   96 ++++++++++----------
 sys/vfs/ntfs/ntfs_vfsops.c                         |   14 ++--
 sys/vfs/ntfs/ntfs_vnops.c                          |    4 +-
 sys/vfs/nwfs/nwfs_node.c                           |    5 +-
 sys/vfs/nwfs/nwfs_vfsops.c                         |    6 +-
 sys/vfs/portal/portal_vfsops.c                     |   11 +--
 sys/vfs/portal/portal_vnops.c                      |    8 +-
 sys/vfs/procfs/procfs_status.c                     |   22 ++---
 sys/vfs/procfs/procfs_subr.c                       |    3 +-
 sys/vfs/smbfs/smbfs_node.c                         |    7 +-
 sys/vfs/smbfs/smbfs_vfsops.c                       |    3 +-
 sys/vfs/ufs/ffs_inode.c                            |    5 +-
 sys/vfs/ufs/ffs_softdep.c                          |   86 +++++++++---------
 sys/vfs/ufs/ffs_vfsops.c                           |    4 +-
 sys/vfs/ufs/ufs_dirhash.c                          |   27 +++---
 sys/vfs/union/union_subr.c                         |    4 +-
 130 files changed, 810 insertions(+), 967 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/884717e1debcf4b08bda1d29d01b0c8a34b86a59


-- 
DragonFly BSD source repository





More information about the Commits mailing list