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.33-rc3~5^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e10e716abf3c71bdb5d86b8f507f9e72236c9cd;p=pandora-kernel.git resource: add helpers for fetching rlimits 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 --- Reading git-diff-tree failed