linux/fs/dlm
Jesper Juhl 5d70828a77 dlm: don't do pointless NULL check, use kzalloc and fix order of arguments
In fs/dlm/lock.c in the dlm_scan_waiters() function there are 3 small
issues:

1) There's no need to test the return value of the allocation and do a
memset if is succeedes. Just use kzalloc() to obtain zeroed memory.

2) Since kfree() handles NULL pointers gracefully, the test of
'warned' against NULL before the kfree() after the loop is completely
pointless. Remove it.

3) The arguments to kmalloc() (now kzalloc()) were swapped. Thanks to
Dr. David Alan Gilbert for pointing this out.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: David Teigland <teigland@redhat.com>
2011-07-11 08:39:42 -05:00
..
ast.c dlm: record full callback state 2011-03-10 10:40:00 -06:00
ast.h dlm: record full callback state 2011-03-10 10:40:00 -06:00
config.c dlm: show addresses in configfs 2011-06-30 14:45:28 -05:00
config.h dlm: delayed reply message warning 2011-04-01 14:19:06 -05:00
debug_fs.c dlm: record full callback state 2011-03-10 10:40:00 -06:00
dir.c dlm: always use GFP_NOFS 2009-11-30 16:34:43 -06:00
dir.h [DLM] The core of the DLM for GFS2/CLVM 2006-01-18 09:30:29 +00:00
dlm_internal.h dlm: remove shared message stub for recovery 2011-04-05 10:54:47 -05:00
Kconfig dlm: Make DLM depend on CONFIGFS_FS 2011-01-16 21:22:37 +00:00
lock.c dlm: don't do pointless NULL check, use kzalloc and fix order of arguments 2011-07-11 08:39:42 -05:00
lock.h dlm: delayed reply message warning 2011-04-01 14:19:06 -05:00
lockspace.c dlm: use vmalloc for hash tables 2011-07-01 15:49:23 -05:00
lockspace.h dlm: detect available userspace daemon 2008-08-28 11:49:43 -05:00
lowcomms.c dlm: dump address of unknown node 2011-07-06 16:37:23 -05:00
lowcomms.h dlm: connect to nodes earlier 2009-05-15 09:34:12 -05:00
lvb_table.h [DLM] The core of the DLM for GFS2/CLVM 2006-01-18 09:30:29 +00:00
main.c dlm: Drop __TIME__ usage 2011-05-26 09:46:17 +02:00
Makefile dlm: move plock code from gfs2 2008-04-21 11:22:28 -05:00
member.c Fix misspellings of "truly" in comments. 2010-02-04 11:55:45 +01:00
member.h dlm: reject messages from non-members 2008-01-30 11:04:42 -06:00
memory.c dlm: always use GFP_NOFS 2009-11-30 16:34:43 -06:00
memory.h dlm: use dlm prefix on alloc and free functions 2008-01-29 17:17:19 -06:00
midcomms.c dlm: fix up memory allocation flags 2008-12-23 10:15:40 -06:00
midcomms.h [DLM] The core of the DLM for GFS2/CLVM 2006-01-18 09:30:29 +00:00
netlink.c dlm: use genl_register_family_with_ops() 2010-08-05 14:22:01 -05:00
plock.c dlm: make plock operation killable 2011-05-23 10:47:06 -05:00
rcom.c dlm: record full callback state 2011-03-10 10:40:00 -06:00
rcom.h [DLM] block dlm_recv in recovery transition 2007-10-10 08:56:38 +01:00
recover.c Fix common misspellings 2011-03-31 11:26:23 -03:00
recover.h [DLM] The core of the DLM for GFS2/CLVM 2006-01-18 09:30:29 +00:00
recoverd.c dlm: recover nodes that are removed and re-added 2008-04-21 11:18:01 -05:00
recoverd.h [DLM] The core of the DLM for GFS2/CLVM 2006-01-18 09:30:29 +00:00
requestqueue.c dlm: always use GFP_NOFS 2009-11-30 16:34:43 -06:00
requestqueue.h dlm: use proper C for dlm/requestqueue stuff (and fix alignment bug) 2008-02-04 01:21:32 -06:00
user.c dlm: Remove superfluous call to recalc_sigpending() 2011-03-28 10:20:17 -05:00
user.h dlm: record full callback state 2011-03-10 10:40:00 -06:00
util.c dlm: do not byteswap rcom_config 2008-02-04 01:23:43 -06:00
util.h [DLM] The core of the DLM for GFS2/CLVM 2006-01-18 09:30:29 +00:00