projects
/
GitHub
/
LineageOS
/
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:
56656e9
)
ovl: cleanup unused var in rename2
author
Miklos Szeredi
<mszeredi@redhat.com>
Mon, 21 Mar 2016 16:31:46 +0000
(17:31 +0100)
committer
Miklos Szeredi
<miklos@szeredi.hu>
Mon, 21 Mar 2016 16:31:46 +0000
(17:31 +0100)
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/dir.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/overlayfs/dir.c
b/fs/overlayfs/dir.c
index bc1758a160f6d7e857d43294c2c6656ca122a537..b3fc0a35bf6242b4bc3cfc9144bcc2e3ae638713 100644
(file)
--- a/
fs/overlayfs/dir.c
+++ b/
fs/overlayfs/dir.c
@@
-719,7
+719,6
@@
static int ovl_rename2(struct inode *olddir, struct dentry *old,
struct dentry *trap;
bool old_opaque;
bool new_opaque;
- bool new_create = false;
bool cleanup_whiteout = false;
bool overwrite = !(flags & RENAME_EXCHANGE);
bool is_dir = d_is_dir(old);
@@
-872,7
+871,6
@@
static int ovl_rename2(struct inode *olddir, struct dentry *old,
goto out_dput;
}
} else {
- new_create = true;
if (!d_is_negative(newdentry) &&
(!new_opaque || !ovl_is_whiteout(newdentry)))
goto out_dput;