From: Jiri Slaby Date: Thu, 19 Nov 2009 16:16:37 +0000 (+0100) Subject: resource: add helpers for fetching rlimits X-Git-Tag: v2.6.27.46~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1626749d7bbbc00b362b632d993289128651d075;p=pandora-kernel.git resource: add helpers for fetching rlimits commit 3e10e716abf3c71bdb5d86b8f507f9e72236c9cd upstream. We want to be sure that compiler fetches the limit variable only once, so add helpers for fetching current and maximal resource limits which do that. Add them to sched.h (instead of resource.h) due to circular dependency sched.h->resource.h->task_struct Alternative would be to create a separate res_access.h or similar. Signed-off-by: Jiri Slaby Cc: James Morris Cc: Heiko Carstens Cc: Andrew Morton Cc: Ingo Molnar Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed