mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
take check for new events in namespace (guts of mounts_poll()) to namespace.c
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
e21e7095a7
commit
9f5596af44
3 changed files with 18 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue