ovl: decode lower file handles of unlinked but open files
authorAmir Goldstein <amir73il@gmail.com>
Sun, 24 Dec 2017 16:28:04 +0000 (18:28 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 24 Jan 2018 10:26:03 +0000 (11:26 +0100)
commit9436a1a339fae84698aaa0b66d7a822018388348
tree38d74ccb48e21ade05347aa0e4f2de2ad6bd17c0
parentf71bd9cfb692ec80236b186419bf907eb5fa348c
ovl: decode lower file handles of unlinked but open files

Lookup overlay inode in cache by origin inode, so we can decode a file
handle of an open file even if the index has a whiteout index entry to
mark this overlay inode was unlinked.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/export.c
fs/overlayfs/inode.c
fs/overlayfs/overlayfs.h