diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2011-07-12 20:48:39 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-20 20:47:50 -0400 |
commit | f15146380d28b746df3c8b81b392812eb982382a (patch) | |
tree | bf43b38b60c21bd01b007c9636062783d406eb29 /fs/proc | |
parent | 72c5052ddc3956d847f21c2b8d55c93664a51b2c (diff) | |
download | op-kernel-dev-f15146380d28b746df3c8b81b392812eb982382a.zip op-kernel-dev-f15146380d28b746df3c8b81b392812eb982382a.tar.gz |
fs: seq_file - add event counter to simplify poll() support
Moving the event counter into the dynamically allocated 'struc seq_file'
allows poll() support without the need to allocate its own tracking
structure.
All current users are switched over to use the new counter.
Requested-by: Andrew Morton akpm@linux-foundation.org
Acked-by: NeilBrown <neilb@suse.de>
Tested-by: Lucas De Marchi lucas.demarchi@profusion.mobi
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index be1ff93..3dc5e2a 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -673,7 +673,7 @@ static int mounts_open_common(struct inode *inode, struct file *file, p->m.private = p; p->ns = ns; p->root = root; - p->event = ns->event; + p->m.poll_event = ns->event; return 0; |