diff options
author | Amir Goldstein <amir73il@gmail.com> | 2017-12-12 16:43:16 -0500 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2018-01-24 05:25:57 -0500 |
commit | 0aceb53e73befee4441c9e68d23cb4f682382171 (patch) | |
tree | 9cf115388cb39a97d0f0957464825dced075592e /fs/overlayfs/overlayfs.h | |
parent | 91ffe7beb31e7e1e689a59f5ef56acea0811d81c (diff) |
ovl: do not pass overlay dentry to ovl_get_inode()
This is needed for using ovl_get_inode() for decoding file handles
for NFS export.
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 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/overlayfs/overlayfs.h b/fs/overlayfs/overlayfs.h index 4e784f6ff484..f9fce7a680cd 100644 --- a/fs/overlayfs/overlayfs.h +++ b/fs/overlayfs/overlayfs.h | |||
@@ -307,8 +307,9 @@ int ovl_update_time(struct inode *inode, struct timespec *ts, int flags); | |||
307 | bool ovl_is_private_xattr(const char *name); | 307 | bool ovl_is_private_xattr(const char *name); |
308 | 308 | ||
309 | struct inode *ovl_new_inode(struct super_block *sb, umode_t mode, dev_t rdev); | 309 | struct inode *ovl_new_inode(struct super_block *sb, umode_t mode, dev_t rdev); |
310 | struct inode *ovl_get_inode(struct dentry *dentry, struct dentry *upperdentry, | 310 | struct inode *ovl_get_inode(struct super_block *sb, struct dentry *upperdentry, |
311 | struct dentry *index); | 311 | struct dentry *lowerdentry, struct dentry *index, |
312 | unsigned int numlower); | ||
312 | static inline void ovl_copyattr(struct inode *from, struct inode *to) | 313 | static inline void ovl_copyattr(struct inode *from, struct inode *to) |
313 | { | 314 | { |
314 | to->i_uid = from->i_uid; | 315 | to->i_uid = from->i_uid; |