ipc/mqueue: simplify reading msgqueue limit
authorDavidlohr Bueso <[email protected]>
Fri, 20 Jan 2012 22:34:01 +0000 (14:34 -0800)
committerLinus Torvalds <[email protected]>
Mon, 23 Jan 2012 16:38:47 +0000 (08:38 -0800)
commit2a4e64b8f6bcbf23ddd375b78342051ae8862284
tree90e753679ca8ff867dc42e84e5a33c90f813c244
parente9a4593cc5e36c6d47c87b439cb41c2568e7395f
ipc/mqueue: simplify reading msgqueue limit

Because the current task is being used to get the limit, we can simply
use rlimit() instead of task_rlimit().

Signed-off-by: Davidlohr Bueso <[email protected]>
Acked-by: KOSAKI Motohiro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
ipc/mqueue.c