]> git.karo-electronics.de Git - karo-tx-linux.git/commit
res_counter: allow charge failure pointer to be null
authorFrederic Weisbecker <fweisbec@gmail.com>
Mon, 24 Oct 2011 14:59:58 +0000 (01:59 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 25 Oct 2011 09:08:14 +0000 (20:08 +1100)
commit5c304c3da5675f9acf7d075a7a7e3588081c421a
treef391d83c2860566c44e2041d193d4f70b313e64d
parentfea73104cc0ba6aca32908fe8931fe3d8d3e20b6
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