projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
beef512
)
Revert "vfs: rename: check backing inode being equal"
author
Miklos Szeredi
<mszeredi@redhat.com>
Fri, 16 Dec 2016 10:02:54 +0000
(11:02 +0100)
committer
Miklos Szeredi
<mszeredi@redhat.com>
Fri, 16 Dec 2016 10:02:54 +0000
(11:02 +0100)
This reverts commit
9409e22acdfc9153f88d9b1ed2bd2a5b34d2d3ca
.
Since commit
51f7e52dc943
("ovl: share inode for hard link") there's no
need to call d_real_inode() to check two overlay inodes for equality.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/namei.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/namei.c
b/fs/namei.c
index 5b4eed2215304a14ac2614058ae2b2002a3f2ae9..31d04d993a2d7432c3b078f75f936a10d763a497 100644
(file)
--- a/
fs/namei.c
+++ b/
fs/namei.c
@@
-4345,11
+4345,7
@@
int vfs_rename(struct inode *old_dir, struct dentry *old_dentry,
bool new_is_dir = false;
unsigned max_links = new_dir->i_sb->s_max_links;
- /*
- * Check source == target.
- * On overlayfs need to look at underlying inodes.
- */
- if (d_real_inode(old_dentry) == d_real_inode(new_dentry))
+ if (source == target)
return 0;
error = may_delete(old_dir, old_dentry, is_dir);