From: Pavel Emelyanov Date: Fri, 25 Jul 2008 08:46:55 +0000 (-0700) Subject: Mark res_counter_charge(_locked) with __must_check X-Git-Tag: v2.6.27-rc1~393 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2992db2a4f7ae10f61d5bc68c7c1528cec639e2;p=pandora-kernel.git 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 Cc: Balbir Singh Cc: Paul Menage Cc: KAMEZAWA Hiroyuki Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed