vfs: add d_canonical_path for stacked filesystem support
authorDaniel Rosenberg <drosen@google.com>
Fri, 12 Feb 2016 00:44:15 +0000 (16:44 -0800)
committerAmit Pundir <amit.pundir@linaro.org>
Thu, 7 Apr 2016 11:20:02 +0000 (16:50 +0530)
commit735236039d54a5a426e774ee275f9cb2585f30dc
tree49d1891bf3f017c675c549b835617ec3c58bacbf
parentb0f3f87bc1533c64aa1b1a86dd583c92919462ca
vfs: add d_canonical_path for stacked filesystem support

Inotify does not currently know when a filesystem
is acting as a wrapper around another fs. This means
that inotify watchers will miss any modifications to
the base file, as well as any made in a separate
stacked fs that points to the same file.
d_canonical_path solves this problem by allowing the fs
to map a dentry to a path in the lower fs. Inotify
can use it to find the appropriate place to watch to
be informed of all changes to a file.

Change-Id: I09563baffad1711a045e45c1bd0bd8713c2cc0b6
Signed-off-by: Daniel Rosenberg <drosen@google.com>
fs/notify/inotify/inotify_user.c
include/linux/dcache.h