diff options
author | Amir Goldstein <amir73il@gmail.com> | 2018-03-16 04:39:37 -0400 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2018-04-12 06:04:50 -0400 |
commit | 12574a9f4c9cc9d8d6fd9078cbb8ec7d3e9ed46b (patch) | |
tree | b402f00c36a27b8ce52059adea6925de10929c35 /fs/overlayfs/overlayfs.h | |
parent | e487d889b7e3e8ec4091eb83bc4f7e67c7f05e27 (diff) |
ovl: consistent i_ino for non-samefs with xino
When overlay layers are not all on the same fs, but all inode numbers
of underlying fs do not use the high 'xino' bits, overlay st_ino values
are constant and persistent.
In that case, set i_ino value to the same value as st_ino for nfsd
readdirplus validator.
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/overlayfs/overlayfs.h b/fs/overlayfs/overlayfs.h index 8eefc309aeb6..e0b7de799f6b 100644 --- a/fs/overlayfs/overlayfs.h +++ b/fs/overlayfs/overlayfs.h | |||
@@ -338,7 +338,7 @@ struct inode *ovl_new_inode(struct super_block *sb, umode_t mode, dev_t rdev); | |||
338 | struct inode *ovl_lookup_inode(struct super_block *sb, struct dentry *real, | 338 | struct inode *ovl_lookup_inode(struct super_block *sb, struct dentry *real, |
339 | bool is_upper); | 339 | bool is_upper); |
340 | struct inode *ovl_get_inode(struct super_block *sb, struct dentry *upperdentry, | 340 | struct inode *ovl_get_inode(struct super_block *sb, struct dentry *upperdentry, |
341 | struct dentry *lowerdentry, struct dentry *index, | 341 | struct ovl_path *lowerpath, struct dentry *index, |
342 | unsigned int numlower); | 342 | unsigned int numlower); |
343 | static inline void ovl_copyattr(struct inode *from, struct inode *to) | 343 | static inline void ovl_copyattr(struct inode *from, struct inode *to) |
344 | { | 344 | { |