]> git.baikalelectronics.ru Git - kernel.git/commit
eventfd: change int to __u64 in eventfd_signal()
authorSha Zhengju <handai.szj@taobao.com>
Thu, 31 May 2012 23:26:41 +0000 (16:26 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 1 Jun 2012 00:49:32 +0000 (17:49 -0700)
commite31abf2e2b412d60d850b5a058038fa7547d2a8e
tree538f5338f6a00d1a4cee9e69ba74082747a452aa
parent911c50dae32b68bb57b929d7f8a446fbed9740d9
eventfd: change int to __u64 in eventfd_signal()

eventfd_ctx->count is an __u64 counter which is allowed to reach
ULLONG_MAX.  eventfd_write() adds a __u64 value to "count", but the kernel
side eventfd_signal() only adds an int value to it.  Make them consistent.

[akpm@linux-foundation.org: update interface documentation]
Signed-off-by: Sha Zhengju <handai.szj@taobao.com>
Cc: Davide Libenzi <davidel@xmailserver.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/eventfd.c
include/linux/eventfd.h