epoll: convert max_user_watches to long
authorRobin Holt <holt@sgi.com>
Thu, 13 Jan 2011 01:00:01 +0000 (17:00 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 13 Jan 2011 16:03:12 +0000 (08:03 -0800)
commit52bd19f7691b2ea6433aef0ef94c08c57efd7e79
treedaaa39ee774fb4fe56ca61247eb930ed4f6e1ef1
parent65329bf46bf9ddc37845c9a6823a8e8022d305b9
epoll: convert max_user_watches to long

On a 16TB machine, max_user_watches has an integer overflow.  Convert it
to use a long and handle the associated fallout.

Signed-off-by: Robin Holt <holt@sgi.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Davide Libenzi <davidel@xmailserver.org>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/eventpoll.c
include/linux/sched.h