]> git.karo-electronics.de Git - karo-tx-linux.git/commit
res_counter: allow charge failure pointer to be null
authorFrederic Weisbecker <fweisbec@gmail.com>
Tue, 8 Nov 2011 00:20:21 +0000 (11:20 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 16 Nov 2011 01:47:08 +0000 (12:47 +1100)
commit400c4ffe1af1fbc189f543ecf5c8ed69498e71bf
tree5b967f7484554eff765e0c39ea7b684e8ad322bb
parentae4f55ddb3e2953b4e967ca17b2e84eded26769d
res_counter: allow charge failure pointer to be null

So that callers of res_counter_charge() don't have to create and pass this
pointer even if they aren't interested in it.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Paul Menage <paul@paulmenage.org>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Aditya Kali <adityakali@google.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Tim Hockin <thockin@hockin.org>
Cc: Tejun Heo <htejun@gmail.com>
Acked-by: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/res_counter.c