diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2010-02-05 05:40:25 (GMT) |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-03-03 19:07:59 (GMT) |
commit | 9f5596af44514f99e3a654a4f7cb813354b9e516 (patch) | |
tree | 6a579bf387683b910bd32e8aa7edef9956e58dd1 /fs/namespace.c | |
parent | e21e7095a78867364d7aa9223d833ccb966f93f3 (diff) | |
download | linux-fsl-qoriq-9f5596af44514f99e3a654a4f7cb813354b9e516.tar.xz |
take check for new events in namespace (guts of mounts_poll()) to namespace.c
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namespace.c')
-rw-r--r-- | fs/namespace.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/fs/namespace.c b/fs/namespace.c index d5906c1..970fe79 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -737,6 +737,21 @@ static void m_stop(struct seq_file *m, void *v) up_read(&namespace_sem); } +int mnt_had_events(struct proc_mounts *p) +{ + struct mnt_namespace *ns = p->ns; + int res = 0; + + spin_lock(&vfsmount_lock); + if (p->event != ns->event) { + p->event = ns->event; + res = 1; + } + spin_unlock(&vfsmount_lock); + + return res; +} + struct proc_fs_info { int flag; const char *str; |