mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-05-10 09:15:53 +00:00
ovl: dont replace opaque dir
When removing an empty opaque directory, then it makes no sense to replace it with an exact replica of itself before removal. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
This commit is contained in:
parent
1afaba1ecb
commit
263b4a0fee
1 changed files with 1 additions and 1 deletions
|
@ -506,7 +506,7 @@ static int ovl_remove_and_whiteout(struct dentry *dentry, bool is_dir)
|
||||||
struct dentry *opaquedir = NULL;
|
struct dentry *opaquedir = NULL;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
if (is_dir) {
|
if (is_dir && OVL_TYPE_MERGE_OR_LOWER(ovl_path_type(dentry))) {
|
||||||
opaquedir = ovl_check_empty_and_clear(dentry);
|
opaquedir = ovl_check_empty_and_clear(dentry);
|
||||||
err = PTR_ERR(opaquedir);
|
err = PTR_ERR(opaquedir);
|
||||||
if (IS_ERR(opaquedir))
|
if (IS_ERR(opaquedir))
|
||||||
|
|
Loading…
Add table
Reference in a new issue