Yoann Padioleau
dd00cc486a
some kmalloc/memset ->kzalloc (tree wide)
Transform some calls to kmalloc/memset to a single kzalloc (or kcalloc).
Here is a short excerpt of the semantic patch performing
this transformation:
@@
type T2;
expression x;
identifier f,fld;
expression E;
expression E1,E2;
expression e1,e2,e3,y;
statement S;
@@
x =
- kmalloc
+ kzalloc
(E1,E2)
... when != \(x->fld=E;\|y=f(...,x,...);\|f(...,x,...);\|x=E;\|while(...) S\|for(e1;e2;e3) S\)
- memset((T2)x,0,E1);
@@
expression E1,E2,E3;
@@
- kzalloc(E1 * E2,E3)
+ kcalloc(E1,E2,E3)
[[email protected]: get kcalloc args the right way around]
Signed-off-by: Yoann Padioleau <[email protected]>
Cc: Richard Henderson <[email protected]>
Cc: Ivan Kokshaysky <[email protected]>
Acked-by: Russell King <[email protected]>
Cc: Bryan Wu <[email protected]>
Acked-by: Jiri Slaby <[email protected]>
Cc: Dave Airlie <[email protected]>
Acked-by: Roland Dreier <[email protected]>
Cc: Jiri Kosina <[email protected]>
Acked-by: Dmitry Torokhov <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Acked-by: Mauro Carvalho Chehab <[email protected]>
Acked-by: Pierre Ossman <[email protected]>
Cc: Jeff Garzik <[email protected]>
Cc: "David S. Miller" <[email protected]>
Acked-by: Greg KH <[email protected]>
Cc: James Bottomley <[email protected]>
Cc: "Antonino A. Daplas" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
|
2007-07-19 10:04:50 -07:00 |
| .. |
|
9p
|
9p: fix debug compilation error
|
2007-07-16 16:03:25 -05:00 |
|
adfs
|
sendfile: remove .sendfile from filesystems that use generic_file_sendfile()
|
2007-07-10 08:04:13 +02:00 |
|
affs
|
sendfile: remove .sendfile from filesystems that use generic_file_sendfile()
|
2007-07-10 08:04:13 +02:00 |
|
afs
|
AFS: drop explicit extern
|
2007-07-16 09:05:43 -07:00 |
|
autofs
|
|
|
|
autofs4
|
|
|
|
befs
|
|
|
|
bfs
|
sendfile: remove .sendfile from filesystems that use generic_file_sendfile()
|
2007-07-10 08:04:13 +02:00 |
|
cifs
|
Merge branch 'master' of /pub/scm/linux/kernel/git/torvalds/linux-2.6
|
2007-07-19 00:38:57 +00:00 |
|
coda
|
coda: update module information
|
2007-07-19 10:04:49 -07:00 |
|
configfs
|
configfs: config item dependancies.
|
2007-07-10 17:18:59 -07:00 |
|
cramfs
|
|
|
|
debugfs
|
debugfs: remove rmdir() non-empty complaint
|
2007-07-18 15:49:48 -07:00 |
|
devpts
|
|
|
|
dlm
|
some kmalloc/memset ->kzalloc (tree wide)
|
2007-07-19 10:04:50 -07:00 |
|
ecryptfs
|
eCryptfs: ecryptfs_setattr() bugfix
|
2007-07-19 10:04:43 -07:00 |
|
efs
|
knfsd: exportfs: remove iget abuse
|
2007-07-17 10:23:06 -07:00 |
|
exportfs
|
knfsd: exportfs: split out reconnecting a dentry from find_exported_dentry
|
2007-07-17 10:23:06 -07:00 |
|
ext2
|
some kmalloc/memset ->kzalloc (tree wide)
|
2007-07-19 10:04:50 -07:00 |
|
ext3
|
readahead: split ondemand readahead interface into two functions
|
2007-07-19 10:04:44 -07:00 |
|
ext4
|
fix ext4/JBD2 build warnings
|
2007-07-19 10:04:47 -07:00 |
|
fat
|
knfsd: exportfs: add exportfs.h header
|
2007-07-17 10:23:06 -07:00 |
|
freevxfs
|
vxfs warning fixes
|
2007-07-16 09:05:41 -07:00 |
|
fuse
|
sendfile: remove .sendfile from filesystems that use generic_file_sendfile()
|
2007-07-10 08:04:13 +02:00 |
|
gfs2
|
mm: fault feedback #2
|
2007-07-19 10:04:41 -07:00 |
|
hfs
|
sendfile: remove .sendfile from filesystems that use generic_file_sendfile()
|
2007-07-10 08:04:13 +02:00 |
|
hfsplus
|
Introduce is_owner_or_cap() to wrap CAP_FOWNER use with fsuid check
|
2007-07-17 12:00:03 -07:00 |
|
hostfs
|
sendfile: remove .sendfile from filesystems that use generic_file_sendfile()
|
2007-07-10 08:04:13 +02:00 |
|
hpfs
|
sendfile: remove .sendfile from filesystems that use generic_file_sendfile()
|
2007-07-10 08:04:13 +02:00 |
|
hppfs
|
|
|
|
hugetlbfs
|
hugetlbfs: handle empty options string
|
2007-07-16 09:05:46 -07:00 |
|
isofs
|
knfsd: exportfs: add exportfs.h header
|
2007-07-17 10:23:06 -07:00 |
|
jbd
|
is_power_of_2(): jbd
|
2007-07-16 09:05:48 -07:00 |
|
jbd2
|
fix ext4/JBD2 build warnings
|
2007-07-19 10:04:47 -07:00 |
|
jffs2
|
Introduce is_owner_or_cap() to wrap CAP_FOWNER use with fsuid check
|
2007-07-17 12:00:03 -07:00 |
|
jfs
|
Introduce is_owner_or_cap() to wrap CAP_FOWNER use with fsuid check
|
2007-07-17 12:00:03 -07:00 |
|
lockd
|
knfsd: lockd: nfsd4: use same grace period for lockd and nfsd4
|
2007-07-17 10:23:07 -07:00 |
|
minix
|
sendfile: remove .sendfile from filesystems that use generic_file_sendfile()
|
2007-07-10 08:04:13 +02:00 |
|
msdos
|
|
|
|
ncpfs
|
mm: fault feedback #1
|
2007-07-19 10:04:41 -07:00 |
|
nfs
|
locks: make posix_test_lock() interface more consistent
|
2007-07-18 19:17:19 -04:00 |
|
nfs_common
|
|
|
|
nfsd
|
locks: rename lease functions to reflect locks.c conventions
|
2007-07-18 19:14:12 -04:00 |
|
nls
|
NLS: Remove obsolete Makefile entries
|
2007-07-16 09:05:52 -07:00 |
|
ntfs
|
knfsd: exportfs: add exportfs.h header
|
2007-07-17 10:23:06 -07:00 |
|
ocfs2
|
mm: fault feedback #1
|
2007-07-19 10:04:41 -07:00 |
|
openpromfs
|
|
|
|
partitions
|
some kmalloc/memset ->kzalloc (tree wide)
|
2007-07-19 10:04:50 -07:00 |
|
proc
|
coredump masking: add an interface for core dump filter
|
2007-07-19 10:04:47 -07:00 |
|
qnx4
|
sendfile: remove .sendfile from filesystems that use generic_file_sendfile()
|
2007-07-10 08:04:13 +02:00 |
|
ramfs
|
Add __GFP_MOVABLE for callers to flag allocations from high memory that may be migrated
|
2007-07-17 10:22:59 -07:00 |
|
reiserfs
|
Introduce is_owner_or_cap() to wrap CAP_FOWNER use with fsuid check
|
2007-07-17 12:00:03 -07:00 |
|
romfs
|
|
|
|
smbfs
|
sendfile: remove .sendfile from filesystems that use generic_file_sendfile()
|
2007-07-10 08:04:13 +02:00 |
|
sysfs
|
sysfs: cosmetic clean up on node creation failure paths
|
2007-07-18 15:49:50 -07:00 |
|
sysv
|
sendfile: remove .sendfile from filesystems that use generic_file_sendfile()
|
2007-07-10 08:04:13 +02:00 |
|
udf
|
UDF: coding style conversion - lindent
|
2007-07-19 10:04:43 -07:00 |
|
ufs
|
is_power_of_2: ufs/super.c
|
2007-07-16 09:05:50 -07:00 |
|
vfat
|
|
|
|
xfs
|
mm: fault feedback #1
|
2007-07-19 10:04:41 -07:00 |
|
aio.c
|
|
|
|
anon_inodes.c
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/avi/kvm
|
2007-07-17 11:50:26 -07:00 |
|
attr.c
|
Introduce is_owner_or_cap() to wrap CAP_FOWNER use with fsuid check
|
2007-07-17 12:00:03 -07:00 |
|
bad_inode.c
|
sendfile: remove bad_sendfile() from bad_file_ops
|
2007-07-10 08:04:15 +02:00 |
|
binfmt_aout.c
|
|
|
|
binfmt_elf.c
|
coredump masking: ELF: enable core dump filtering
|
2007-07-19 10:04:47 -07:00 |
|
binfmt_elf_fdpic.c
|
coredump masking: ELF-FDPIC: enable core dump filtering
|
2007-07-19 10:04:47 -07:00 |
|
binfmt_em86.c
|
|
|
|
binfmt_flat.c
|
nommu: report correct errno in message
|
2007-06-08 17:23:32 -07:00 |
|
binfmt_misc.c
|
mm: variable length argument support
|
2007-07-19 10:04:45 -07:00 |
|
binfmt_script.c
|
mm: variable length argument support
|
2007-07-19 10:04:45 -07:00 |
|
binfmt_som.c
|
|
|
|
bio.c
|
unexport bio_{,un}map_user
|
2007-07-10 08:03:34 +02:00 |
|
block_dev.c
|
bd_claim_by_disk: fix warning
|
2007-07-16 09:05:50 -07:00 |
|
buffer.c
|
fs: introduce some page/buffer invariants
|
2007-07-17 10:23:02 -07:00 |
|
char_dev.c
|
unregister_chrdev() return void
|
2007-07-19 10:04:43 -07:00 |
|
compat.c
|
mm: variable length argument support
|
2007-07-19 10:04:45 -07:00 |
|
compat_ioctl.c
|
compat32: ignore the LOOP_CLR_FD ioctl
|
2007-07-16 09:05:52 -07:00 |
|
dcache.c
|
mm: clean up and kernelify shrinker registration
|
2007-07-17 10:23:00 -07:00 |
|
dcookies.c
|
|
|
|
direct-io.c
|
dio: remove bogus refcounting BUG_ON
|
2007-07-03 18:23:23 -07:00 |
|
dnotify.c
|
|
|
|
dquot.c
|
mm: clean up and kernelify shrinker registration
|
2007-07-17 10:23:00 -07:00 |
|
drop_caches.c
|
invalidate_mapping_pages(): add cond_resched
|
2007-07-16 09:05:36 -07:00 |
|
eventfd.c
|
|
|
|
eventpoll.c
|
|
|
|
exec.c
|
coredump masking: reimplementation of dumpable using two flags
|
2007-07-19 10:04:46 -07:00 |
|
fcntl.c
|
Introduce is_owner_or_cap() to wrap CAP_FOWNER use with fsuid check
|
2007-07-17 12:00:03 -07:00 |
|
fifo.c
|
|
|
|
file.c
|
|
|
|
file_table.c
|
|
|
|
filesystems.c
|
|
|
|
fs-writeback.c
|
|
|
|
generic_acl.c
|
Introduce is_owner_or_cap() to wrap CAP_FOWNER use with fsuid check
|
2007-07-17 12:00:03 -07:00 |
|
inode.c
|
mm: clean up and kernelify shrinker registration
|
2007-07-17 10:23:00 -07:00 |
|
inotify.c
|
|
|
|
inotify_user.c
|
|
|
|
internal.h
|
|
|
|
ioctl.c
|
drop obsolete sys_ioctl export
|
2007-07-16 09:05:48 -07:00 |
|
ioprio.c
|
|
|
|
Kconfig
|
jbd2: Move jbd2-debug file to debugfs
|
2007-07-18 08:50:18 -04:00 |
|
Kconfig.binfmt
|
|
|
|
libfs.c
|
|
|
|
locks.c
|
locks: fix vfs_test_lock() comment
|
2007-07-18 19:17:19 -04:00 |
|
Makefile
|
|
|
|
mbcache.c
|
mm: clean up and kernelify shrinker registration
|
2007-07-17 10:23:00 -07:00 |
|
mpage.c
|
|
|
|
namei.c
|
fs: remove path_walk export
|
2007-07-19 10:04:45 -07:00 |
|
namespace.c
|
fs/namespace.c should #include "internal.h"
|
2007-07-16 09:05:50 -07:00 |
|
nfsctl.c
|
nfsctl: use vfs_path_lookup
|
2007-07-19 10:04:45 -07:00 |
|
no-block.c
|
|
|
|
open.c
|
sys_fallocate() implementation on i386, x86_64 and powerpc
|
2007-07-17 21:42:44 -04:00 |
|
pipe.c
|
pipe: add documentation and comments
|
2007-07-10 08:04:16 +02:00 |
|
pnode.c
|
|
|
|
pnode.h
|
|
|
|
posix_acl.c
|
|
|
|
quota.c
|
diskquota: 32bit quota tools on 64bit architectures
|
2007-07-16 09:05:48 -07:00 |
|
quota_v1.c
|
|
|
|
quota_v2.c
|
|
|
|
read_write.c
|
Remove remnants of sendfile()
|
2007-07-10 08:04:15 +02:00 |
|
read_write.h
|
|
|
|
readdir.c
|
|
|
|
select.c
|
|
|
|
seq_file.c
|
seq_file: more atomicity in traverse()
|
2007-07-16 09:05:45 -07:00 |
|
signalfd.c
|
avoid spurious POLLIN returns in signalfd
|
2007-06-28 11:34:54 -07:00 |
|
splice.c
|
readahead: split ondemand readahead interface into two functions
|
2007-07-19 10:04:44 -07:00 |
|
stack.c
|
|
|
|
stat.c
|
|
|
|
super.c
|
hugetlbfs: handle empty options string
|
2007-07-16 09:05:46 -07:00 |
|
sync.c
|
Introduce fixed sys_sync_file_range2() syscall, implement on PowerPC and ARM
|
2007-06-28 11:38:30 -07:00 |
|
timerfd.c
|
|
|
|
utimes.c
|
Introduce is_owner_or_cap() to wrap CAP_FOWNER use with fsuid check
|
2007-07-17 12:00:03 -07:00 |
|
xattr.c
|
Introduce is_owner_or_cap() to wrap CAP_FOWNER use with fsuid check
|
2007-07-17 12:00:03 -07:00 |
|
xattr_acl.c
|
|
|