]> git.baikalelectronics.ru Git - kernel.git/commit
proc: Update proc_flush_task_mnt to use d_invalidate
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 13 Feb 2014 18:24:23 +0000 (10:24 -0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 9 Oct 2014 06:38:58 +0000 (02:38 -0400)
commitee3f3c1b8d4c85f6b13c3465f4a2f8b8e9172ce3
treea9fc77990ac4807b581f7f5b5cf6739af826d343
parent66e75d7dd1bd7ee4d0918dbdd39ee0933173599a
proc: Update proc_flush_task_mnt to use d_invalidate

Now that d_invalidate always succeeds and flushes mount points use
it in stead of a combination of shrink_dcache_parent and d_drop
in proc_flush_task_mnt.  This removes the danger of a mount point
under /proc/<pid>/... becoming unreachable after the d_drop.

Reviewed-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/proc/base.c