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

Commit 7676895f authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

ovl: ovl_dir_fsync() cleanup



Check against !OVL_PATH_LOWER instead of OVL_PATH_MERGE.  For a copied up
directory the two are currently equivalent.

Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
parent 1d113735
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -450,7 +450,7 @@ static int ovl_dir_fsync(struct file *file, loff_t start, loff_t end,
	/*
	 * Need to check if we started out being a lower dir, but got copied up
	 */
	if (!od->is_upper && ovl_path_type(dentry) == OVL_PATH_MERGE) {
	if (!od->is_upper && ovl_path_type(dentry) != OVL_PATH_LOWER) {
		struct inode *inode = file_inode(file);

		realfile = lockless_dereference(od->upperfile);