diff options
author | Amir Goldstein <amir73il@gmail.com> | 2019-11-19 18:14:55 +0300 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2020-03-17 17:04:21 +0300 |
commit | 735c907d7b7df501e951ba07134b9f6f989a94e4 (patch) | |
tree | c4ef2f380cc46367371a3251daebaf0fcf058e51 /fs/overlayfs/util.c | |
parent | 300b124fcf6ad2cd99a7b721e0f096785e0a3134 (diff) | |
download | linux-735c907d7b7df501e951ba07134b9f6f989a94e4.tar.xz |
ovl: fix out of date comment and unreachable code
ovl_inode_update() is no longer called from create object code path.
Fixes: 01b39dcc9568 ("ovl: use inode_insert5() to hash a newly...")
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/util.c')
-rw-r--r-- | fs/overlayfs/util.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/overlayfs/util.c b/fs/overlayfs/util.c index 042f7eb4f7f4..6584e5800a59 100644 --- a/fs/overlayfs/util.c +++ b/fs/overlayfs/util.c @@ -416,8 +416,6 @@ void ovl_inode_update(struct inode *inode, struct dentry *upperdentry) smp_wmb(); OVL_I(inode)->__upperdentry = upperdentry; if (inode_unhashed(inode)) { - if (!inode->i_ino) - inode->i_ino = upperinode->i_ino; inode->i_private = upperinode; __insert_inode_hash(inode, (unsigned long) upperinode); } |