diff options
author | Amir Goldstein <amir73il@gmail.com> | 2017-12-24 11:28:04 -0500 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2018-01-24 05:26:03 -0500 |
commit | 9436a1a339fae84698aaa0b66d7a822018388348 (patch) | |
tree | 38d74ccb48e21ade05347aa0e4f2de2ad6bd17c0 /fs/overlayfs/overlayfs.h | |
parent | f71bd9cfb692ec80236b186419bf907eb5fa348c (diff) |
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>
Diffstat (limited to 'fs/overlayfs/overlayfs.h')
-rw-r--r-- | fs/overlayfs/overlayfs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/overlayfs/overlayfs.h b/fs/overlayfs/overlayfs.h index 40ba11e412b1..a47f9142b6be 100644 --- a/fs/overlayfs/overlayfs.h +++ b/fs/overlayfs/overlayfs.h | |||
@@ -322,6 +322,7 @@ int ovl_update_time(struct inode *inode, struct timespec *ts, int flags); | |||
322 | bool ovl_is_private_xattr(const char *name); | 322 | bool ovl_is_private_xattr(const char *name); |
323 | 323 | ||
324 | struct inode *ovl_new_inode(struct super_block *sb, umode_t mode, dev_t rdev); | 324 | struct inode *ovl_new_inode(struct super_block *sb, umode_t mode, dev_t rdev); |
325 | struct inode *ovl_lookup_inode(struct super_block *sb, struct dentry *origin); | ||
325 | struct inode *ovl_get_inode(struct super_block *sb, struct dentry *upperdentry, | 326 | struct inode *ovl_get_inode(struct super_block *sb, struct dentry *upperdentry, |
326 | struct dentry *lowerdentry, struct dentry *index, | 327 | struct dentry *lowerdentry, struct dentry *index, |
327 | unsigned int numlower); | 328 | unsigned int numlower); |