Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 263b4a0f authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

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: default avatarMiklos Szeredi <mszeredi@suse.cz>
parent 1afaba1e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -506,7 +506,7 @@ static int ovl_remove_and_whiteout(struct dentry *dentry, bool is_dir)
	struct dentry *opaquedir = NULL;
	int err;

	if (is_dir) {
	if (is_dir && OVL_TYPE_MERGE_OR_LOWER(ovl_path_type(dentry))) {
		opaquedir = ovl_check_empty_and_clear(dentry);
		err = PTR_ERR(opaquedir);
		if (IS_ERR(opaquedir))