Pavel Emelyanov f2992db2a4 Mark res_counter_charge(_locked) with __must_check
Ignoring their return values may result in counter underflow in the future -
when the value charged will be uncharged (or in "leaks" - when the value is
not uncharged).

This also prevents from using charging routines to decrement the
counter value (i.e. uncharge it) ;)

(Current code works OK with res_counter, however :) )

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Cc: Balbir Singh <balbir@linux.vnet.ibm.com>
Cc: Paul Menage <menage@google.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-07-25 10:53:35 -07:00
..
2008-07-25 10:53:30 -07:00
2008-07-25 10:53:30 -07:00
2008-07-25 10:53:30 -07:00
2008-07-24 08:31:12 -04:00
2008-07-24 10:47:24 -07:00
2008-07-25 10:53:30 -07:00
2008-07-14 09:54:43 +02:00
2008-07-24 10:47:41 -07:00
2008-07-16 11:15:53 +02:00