]> git.baikalelectronics.ru Git - kernel.git/commit
VFS: Introduce inode-getting helpers for layered/unioned fs environments
authorDavid Howells <dhowells@redhat.com>
Thu, 29 Jan 2015 12:02:27 +0000 (12:02 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 22 Feb 2015 16:38:15 +0000 (11:38 -0500)
commit8fc881815f2a40c6e32e0e00e5c9ac0fe98aadbf
tree322e9d089bd5610164aeadf164a237328cb0b19c
parent75a00d895b1aa66559e94482a271d9fd791730d0
VFS: Introduce inode-getting helpers for layered/unioned fs environments

Introduce some function for getting the inode (and also the dentry) in an
environment where layered/unioned filesystems are in operation.

The problem is that we have places where we need *both* the union dentry and
the lower source or workspace inode or dentry available, but we can only have
a handle on one of them.  Therefore we need to derive the handle to the other
from that.

The idea is to introduce an extra field in struct dentry that allows the union
dentry to refer to and pin the lower dentry.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/dcache.h