kernel-hacking-2024-linux-s.../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
dir.h
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
lowcomms.c dlm: dump address of unknown node 2011-07-06 16:37:23 -05:00
lowcomms.h
lvb_table.h
main.c dlm: Drop __TIME__ usage 2011-05-26 09:46:17 +02:00
Makefile
member.c
member.h
memory.c
memory.h
midcomms.c
midcomms.h
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
recover.c Fix common misspellings 2011-03-31 11:26:23 -03:00
recover.h
recoverd.c
recoverd.h
requestqueue.c
requestqueue.h
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
util.h