* [PATCH 00/49] Use vzalloc not vmalloc/kmemset [not found] <alpine.DEB.2.00.1011031108260.11625@router.home> @ 2010-11-05 3:07 ` Joe Perches 2010-11-05 3:08 ` [PATCH 46/49] net/netfilter: Use vzalloc Joe Perches 0 siblings, 1 reply; 8+ messages in thread From: Joe Perches @ 2010-11-05 3:07 UTC (permalink / raw) To: Jiri Kosina Cc: linux-ia64, linux-kernel, linux-mips, kvm, kvm-ppc, linuxppc-dev, cbe-oss-dev, linux-s390, amd64-microcode, linux-crypto, linux-atm-general, netdev, drbd-user, dri-devel, linux-input, linux-rdma, dm-devel, linux-raid, linux-media, linux-mtd, e1000-devel, linux-scsi, osst-users, devel, xen-devel, virtualization, linux-ext4, reiserfs-devel, xfs, codalist, linux-mm Converted vmalloc/memset and vmalloc_node/memset to vzalloc or vzalloc_node using a cocci script and some editing Reduces text a little bit. Compiled x86 only. There are still vmalloc_32 with memset calls still around. Broken out to multiple patches to cc appropriate maintainers. Joe Perches (49): arch/ia64: Use vzalloc arch/mips: Use vzalloc arch/powerpc: Use vzalloc arch/s390: Use vzalloc arch/x86: Use vzalloc crypto: Use vzalloc drivers/atm: Use vzalloc drivers/block: Use vzalloc drivers/char: Use vzalloc drivers/gpu: Use vzalloc drivers/hid: Use vzalloc drivers/infiniband: Use vzalloc drivers/isdn: Use vzalloc drivers/md: Use vzalloc drivers/media: Use vzalloc drivers/mtd: Use vzalloc drivers/net/cxgb3: Use vzalloc drivers/net/cxgb4: Use vzalloc drivers/net/e1000: Use vzalloc drivers/net/e1000e: Use vzalloc drivers/net/ehea: Use vzalloc drivers/net/igb: Use vzalloc drivers/net/igbvf: Use vzalloc drivers/net/ixgb: Use vzalloc drivers/net/ixgbe: Use vzalloc drivers/net/ixgbevf: Use vzalloc drivers/net/netxen: Use vzalloc drivers/net/pch_gbe: Use vzalloc drivers/net/qlcnic: Use vzalloc drivers/net/sfc: Use vzalloc drivers/net/vxge: Use vzalloc drivers/net/bnx2.c: Use vzalloc drivers/s390: Use vzalloc drivers/scsi: Use vzalloc drivers/staging: Use vzalloc drivers/video: Use vzalloc fs/ext4: Use vzalloc fs/jffs2: Use vzalloc fs/reiserfs: Use vzalloc fs/udf: Use vzalloc fs/xfs: Use vzalloc include/linux/coda_linux.h: Use vzalloc kernel: Use vzalloc mm: Use vzalloc net/core/pktgen.c: Use vzalloc net/netfilter: Use vzalloc net/rds: Use vzalloc sound/oss/dev_table.c: Use vzalloc virt/kvm/kvm_main.c: Use vzalloc arch/ia64/kernel/perfmon.c | 3 +- arch/mips/sibyte/common/sb_tbprof.c | 3 +- arch/powerpc/kvm/book3s.c | 6 +-- arch/powerpc/platforms/cell/spufs/lscsa_alloc.c | 3 +- arch/s390/hypfs/hypfs_diag.c | 3 +- arch/x86/kernel/microcode_amd.c | 3 +- arch/x86/kvm/x86.c | 3 +- arch/x86/mm/pageattr-test.c | 3 +- crypto/deflate.c | 3 +- crypto/zlib.c | 3 +- drivers/atm/idt77252.c | 11 ++++--- drivers/atm/lanai.c | 3 +- drivers/block/drbd/drbd_bitmap.c | 5 +-- drivers/char/agp/backend.c | 3 +- drivers/char/mspec.c | 5 +-- drivers/gpu/drm/via/via_dmablit.c | 4 +- drivers/hid/hid-core.c | 3 +- drivers/infiniband/hw/amso1100/c2_rnic.c | 5 +-- drivers/infiniband/hw/ehca/ipz_pt_fn.c | 5 +-- drivers/infiniband/hw/ipath/ipath_driver.c | 3 +- drivers/infiniband/hw/ipath/ipath_file_ops.c | 11 ++----- drivers/infiniband/hw/ipath/ipath_init_chip.c | 5 +-- drivers/infiniband/hw/qib/qib_init.c | 7 +--- drivers/infiniband/ulp/ipoib/ipoib_cm.c | 10 ++---- drivers/infiniband/ulp/ipoib/ipoib_main.c | 3 +- drivers/isdn/i4l/isdn_common.c | 4 +- drivers/isdn/mISDN/dsp_core.c | 3 +- drivers/isdn/mISDN/l1oip_codec.c | 6 +-- drivers/md/dm-log.c | 3 +- drivers/md/dm-snap-persistent.c | 3 +- drivers/md/dm-table.c | 4 +-- drivers/media/dvb/ngene/ngene-core.c | 3 +- drivers/media/video/mx3_camera.c | 3 +- drivers/media/video/pwc/pwc-if.c | 3 +- drivers/media/video/videobuf-dma-sg.c | 3 +- drivers/mtd/nand/nandsim.c | 3 +- drivers/mtd/ubi/vtbl.c | 6 +-- drivers/net/bnx2.c | 10 +----- drivers/net/cxgb3/cxgb3_offload.c | 7 ++-- drivers/net/cxgb4/cxgb4_main.c | 7 ++-- drivers/net/e1000/e1000_main.c | 6 +-- drivers/net/e1000e/netdev.c | 6 +-- drivers/net/ehea/ehea_main.c | 4 +-- drivers/net/igb/igb_main.c | 6 +-- drivers/net/igbvf/netdev.c | 6 +-- drivers/net/ixgb/ixgb_main.c | 6 +-- drivers/net/ixgbe/ixgbe_main.c | 10 ++---- drivers/net/ixgbevf/ixgbevf_main.c | 6 +-- drivers/net/netxen/netxen_nic_init.c | 7 +--- drivers/net/pch_gbe/pch_gbe_main.c | 6 +-- drivers/net/qlcnic/qlcnic_init.c | 7 +--- drivers/net/sfc/filter.c | 3 +- drivers/net/vxge/vxge-config.c | 37 +++++----------------- drivers/s390/cio/blacklist.c | 3 +- drivers/scsi/bfa/bfad.c | 3 +- drivers/scsi/bfa/bfad_debugfs.c | 8 +---- drivers/scsi/cxgbi/libcxgbi.h | 9 ++---- drivers/scsi/osst.c | 3 +- drivers/scsi/qla2xxx/qla_attr.c | 3 +- drivers/scsi/qla2xxx/qla_bsg.c | 3 +- drivers/scsi/scsi_debug.c | 7 +--- drivers/staging/comedi/drivers.c | 4 +-- drivers/staging/rtl8192e/r8192E_core.c | 4 +-- drivers/staging/udlfb/udlfb.c | 5 +-- drivers/staging/xgifb/XGI_main_26.c | 3 +- drivers/staging/zram/zram_drv.c | 3 +- drivers/video/arcfb.c | 5 +-- drivers/video/broadsheetfb.c | 4 +-- drivers/video/hecubafb.c | 5 +-- drivers/video/metronomefb.c | 4 +-- drivers/video/xen-fbfront.c | 3 +- fs/ext4/super.c | 4 +-- fs/jffs2/build.c | 5 +-- fs/reiserfs/journal.c | 9 ++---- fs/reiserfs/resize.c | 4 +-- fs/udf/super.c | 5 +-- fs/xfs/linux-2.6/kmem.h | 7 +---- include/linux/coda_linux.h | 26 ++++++++++------ kernel/profile.c | 6 +-- kernel/relay.c | 4 +-- mm/memcontrol.c | 5 +-- mm/page_cgroup.c | 3 +- mm/percpu.c | 8 +---- mm/swapfile.c | 3 +- net/core/pktgen.c | 3 +- net/netfilter/x_tables.c | 5 +-- net/rds/ib_cm.c | 6 +-- sound/oss/dev_table.c | 6 +-- virt/kvm/kvm_main.c | 13 ++------ 89 files changed, 167 insertions(+), 328 deletions(-) -- 1.7.3.1.g432b3.dirty -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/ Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 46/49] net/netfilter: Use vzalloc 2010-11-05 3:07 ` [PATCH 00/49] Use vzalloc not vmalloc/kmemset Joe Perches @ 2010-11-05 3:08 ` Joe Perches 2010-11-05 6:30 ` Eric Dumazet 0 siblings, 1 reply; 8+ messages in thread From: Joe Perches @ 2010-11-05 3:08 UTC (permalink / raw) To: Jiri Kosina Cc: Patrick McHardy, David S. Miller, netfilter-devel, netfilter, coreteam, netdev, linux-kernel Signed-off-by: Joe Perches <joe@perches.com> --- net/netfilter/x_tables.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c index 8046350..89e8895 100644 --- a/net/netfilter/x_tables.c +++ b/net/netfilter/x_tables.c @@ -753,12 +753,11 @@ static int xt_jumpstack_alloc(struct xt_table_info *i) size = sizeof(void **) * nr_cpu_ids; if (size > PAGE_SIZE) - i->jumpstack = vmalloc(size); + i->jumpstack = vzalloc(size); else - i->jumpstack = kmalloc(size, GFP_KERNEL); + i->jumpstack = kzalloc(size, GFP_KERNEL); if (i->jumpstack == NULL) return -ENOMEM; - memset(i->jumpstack, 0, size); i->stacksize *= xt_jumpstack_multiplier; size = sizeof(void *) * i->stacksize; -- 1.7.3.1.g432b3.dirty ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 46/49] net/netfilter: Use vzalloc 2010-11-05 3:08 ` [PATCH 46/49] net/netfilter: Use vzalloc Joe Perches @ 2010-11-05 6:30 ` Eric Dumazet 2010-11-05 6:55 ` Joe Perches 0 siblings, 1 reply; 8+ messages in thread From: Eric Dumazet @ 2010-11-05 6:30 UTC (permalink / raw) To: Joe Perches, Jesper Juhl Cc: Jiri Kosina, Patrick McHardy, David S. Miller, netfilter-devel, netfilter, coreteam, netdev, linux-kernel Le jeudi 04 novembre 2010 à 20:08 -0700, Joe Perches a écrit : > Signed-off-by: Joe Perches <joe@perches.com> > --- > net/netfilter/x_tables.c | 5 ++--- > 1 files changed, 2 insertions(+), 3 deletions(-) So many 'vzalloc' patches for net tree... I had _one_ patch, waiting that David actually had vzalloc() in its tree before sending it. Given Jesper Juhl was doing this work, could you please take another one, please ? For example, explaining him how to use other tools than "bash+egrep +manual inspection" as he mentioned in a previous mail. Really Joe, your behavior should be smarter than that. Thanks ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 46/49] net/netfilter: Use vzalloc 2010-11-05 6:30 ` Eric Dumazet @ 2010-11-05 6:55 ` Joe Perches 2010-11-05 7:16 ` Eric Dumazet 2010-11-05 15:10 ` Jiri Kosina 0 siblings, 2 replies; 8+ messages in thread From: Joe Perches @ 2010-11-05 6:55 UTC (permalink / raw) To: Eric Dumazet Cc: Jesper Juhl, Jiri Kosina, Patrick McHardy, David S. Miller, netfilter-devel, netfilter, coreteam, netdev, linux-kernel On Fri, 2010-11-05 at 07:30 +0100, Eric Dumazet wrote: > I had _one_ patch, waiting that David actually had vzalloc() in its tree > before sending it. Fine by me, use yours. > Given Jesper Juhl was doing this work, could you please take another > one, please ? > For example, explaining him how to use other tools than "bash+egrep > +manual inspection" as he mentioned in a previous mail. Jesper Juhl was both pointed at the cocci docs and given a cocci script. He said he'd investigate it when he could. I trust he will get to it. I think that for this sort of patchset, grep and manual inspection works just as well as spatch and likely better because a simple cocci script doesn't transform code like: if (size > PAGE_SIZE) ptr = vmalloc(size); else ptr = kmalloc(size, GFP); if (ptr) memset(ptr, 0, size); I did say in the 00 cover that this was broken up just to cc the maintainers of each block. I also think a single rolled-up single patch is good. I believe Jiri Kosina can easily apply all these individual patches as a single patch if he chooses. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 46/49] net/netfilter: Use vzalloc 2010-11-05 6:55 ` Joe Perches @ 2010-11-05 7:16 ` Eric Dumazet 2010-11-05 17:01 ` Jesper Juhl 2010-11-05 15:10 ` Jiri Kosina 1 sibling, 1 reply; 8+ messages in thread From: Eric Dumazet @ 2010-11-05 7:16 UTC (permalink / raw) To: Joe Perches Cc: Jesper Juhl, Jiri Kosina, Patrick McHardy, David S. Miller, netfilter-devel, netfilter, coreteam, netdev, linux-kernel Le jeudi 04 novembre 2010 à 23:55 -0700, Joe Perches a écrit : > On Fri, 2010-11-05 at 07:30 +0100, Eric Dumazet wrote: > > I had _one_ patch, waiting that David actually had vzalloc() in its tree > > before sending it. > > Fine by me, use yours. I dont care at all, only to say that David tree was not ready yet. > > > Given Jesper Juhl was doing this work, could you please take another > > one, please ? > > For example, explaining him how to use other tools than "bash+egrep > > +manual inspection" as he mentioned in a previous mail. > > Jesper Juhl was both pointed at the cocci docs and > given a cocci script. He said he'd investigate it > when he could. I trust he will get to it. > Yes, yet you posted patches, knowing he was working on the _same_ subject. I remember other occurrences of such behavior. I find this behavior very unfriendly, time consuming, and not useful. We try to work together, to increase our common knowledge, not to throw a bunch of patches "just because I know better than you" -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 46/49] net/netfilter: Use vzalloc 2010-11-05 7:16 ` Eric Dumazet @ 2010-11-05 17:01 ` Jesper Juhl 0 siblings, 0 replies; 8+ messages in thread From: Jesper Juhl @ 2010-11-05 17:01 UTC (permalink / raw) To: Eric Dumazet, Joe Perches Cc: Jiri Kosina, Patrick McHardy, David S. Miller, netfilter-devel, netfilter, coreteam, netdev, linux-kernel [-- Attachment #1: Type: TEXT/PLAIN, Size: 2136 bytes --] On Fri, 5 Nov 2010, Eric Dumazet wrote: > Le jeudi 04 novembre 2010 à 23:55 -0700, Joe Perches a écrit : > > On Fri, 2010-11-05 at 07:30 +0100, Eric Dumazet wrote: > > > I had _one_ patch, waiting that David actually had vzalloc() in its tree > > > before sending it. > > > > Fine by me, use yours. > > I dont care at all, only to say that David tree was not ready yet. > > > > > > > Given Jesper Juhl was doing this work, could you please take another > > > one, please ? > > > For example, explaining him how to use other tools than "bash+egrep > > > +manual inspection" as he mentioned in a previous mail. > > > > Jesper Juhl was both pointed at the cocci docs and > > given a cocci script. He said he'd investigate it > > when he could. I trust he will get to it. > > > > Yes, yet you posted patches, knowing he was working on the _same_ > subject. > And I will get to look at cocci and spatch, they are definately tools that I want in my arsenal. > I remember other occurrences of such behavior. > > I find this behavior very unfriendly, time consuming, and not useful. > > We try to work together, to increase our common knowledge, not to throw > a bunch of patches "just because I know better than you" > To be completely honest, I did get the feeling that the task I'd set for myself and was having fun doing in the little spare time I have got hijacked and I did waste about an hour and a half doing a few more cleanups before I saw the patchset on lkml. But on the other hand, the most important thing is that it gets done, not who ends up doing it - especially since it's such a trivial cleanup, so I choose to see it as my initial patches just getting the ball rolling. It would have been nice with at least an email along the lines of "I know how we can do all those patches in a jiffy, mind if I just go along and do that?", but I'll live. There's plenty of other stuff to do :-) -- Jesper Juhl <jj@chaosbits.net> http://www.chaosbits.net/ Plain text mails only, please http://www.expita.com/nomime.html Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 46/49] net/netfilter: Use vzalloc 2010-11-05 6:55 ` Joe Perches 2010-11-05 7:16 ` Eric Dumazet @ 2010-11-05 15:10 ` Jiri Kosina 2010-11-05 15:25 ` Joe Perches 1 sibling, 1 reply; 8+ messages in thread From: Jiri Kosina @ 2010-11-05 15:10 UTC (permalink / raw) To: Joe Perches Cc: Eric Dumazet, Jesper Juhl, Patrick McHardy, David S. Miller, netfilter-devel, netfilter, coreteam, netdev, linux-kernel On Thu, 4 Nov 2010, Joe Perches wrote: > I also think a single rolled-up single patch is good. > > I believe Jiri Kosina can easily apply all these individual patches as a > single patch if he chooses. I will, after this settles a little bit (the same for the WARN series). I prefer waiting a bit before applying your patches usually. First to see what lands in linux-next through maintainer's trees, second to gather Acks. -- Jiri Kosina SUSE Labs, Novell Inc. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 46/49] net/netfilter: Use vzalloc 2010-11-05 15:10 ` Jiri Kosina @ 2010-11-05 15:25 ` Joe Perches 0 siblings, 0 replies; 8+ messages in thread From: Joe Perches @ 2010-11-05 15:25 UTC (permalink / raw) To: Jiri Kosina Cc: Eric Dumazet, Jesper Juhl, Patrick McHardy, David S. Miller, netfilter-devel, netfilter, coreteam, netdev, linux-kernel On Fri, 2010-11-05 at 11:10 -0400, Jiri Kosina wrote: > On Thu, 4 Nov 2010, Joe Perches wrote: > > I also think a single rolled-up single patch is good. > > I believe Jiri Kosina can easily apply all these individual patches as a > > single patch if he chooses. > I will, after this settles a little bit (the same for the WARN series). > I prefer waiting a bit before applying your patches usually. > First to see what lands in linux-next through maintainer's trees, second > to gather Acks. I think that's the right way to do these sorts of trivial changes too. Individual patches cc'd to maintainers for feedback, improvement, acks or to be directly applied to their trees, followed by a longish delay before any unapplied patches are taken up as a single patch by your trivial queue. Thanks for doing that work Jiri. ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-11-05 17:12 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <alpine.DEB.2.00.1011031108260.11625@router.home> 2010-11-05 3:07 ` [PATCH 00/49] Use vzalloc not vmalloc/kmemset Joe Perches 2010-11-05 3:08 ` [PATCH 46/49] net/netfilter: Use vzalloc Joe Perches 2010-11-05 6:30 ` Eric Dumazet 2010-11-05 6:55 ` Joe Perches 2010-11-05 7:16 ` Eric Dumazet 2010-11-05 17:01 ` Jesper Juhl 2010-11-05 15:10 ` Jiri Kosina 2010-11-05 15:25 ` Joe Perches
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).