]> git.baikalelectronics.ru Git - kernel.git/commit
/proc/swaps: support polling
authorKay Sievers <kay.sievers@vrfy.org>
Tue, 26 Oct 2010 21:22:06 +0000 (14:22 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Oct 2010 23:52:11 +0000 (16:52 -0700)
commiteeb6b4f71738649354e0094d5ce69a585a924bb9
tree8e16f734aebba063e0df052825ac375aefeeab5a
parentaadff74a4896ccc19dfeb2fb9a226e02cf3473ca
/proc/swaps: support polling

System management wants to subscribe to changes in swap configuration.
Make /proc/swaps pollable like /proc/mounts.

[akpm@linux-foundation.org: document proc_poll_event]
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Acked-by: Greg KH <greg@kroah.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/swapfile.c