diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2014-11-20 10:40:02 -0500 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2014-11-20 10:40:02 -0500 |
commit | 7676895f4736421ebafc48de5078e25ea69e88ee (patch) | |
tree | 19de6c0530dd166d501dda8506f3564b452e7da4 /fs/overlayfs | |
parent | 1d113735ecf21de74a04c3b58fa106ac2e64ca0d (diff) |
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: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'fs/overlayfs')
-rw-r--r-- | fs/overlayfs/readdir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/overlayfs/readdir.c b/fs/overlayfs/readdir.c index 7299e962f334..ab1e3dcbed95 100644 --- a/fs/overlayfs/readdir.c +++ b/fs/overlayfs/readdir.c | |||
@@ -450,10 +450,10 @@ static int ovl_dir_fsync(struct file *file, loff_t start, loff_t end, | |||
450 | /* | 450 | /* |
451 | * Need to check if we started out being a lower dir, but got copied up | 451 | * Need to check if we started out being a lower dir, but got copied up |
452 | */ | 452 | */ |
453 | if (!od->is_upper && ovl_path_type(dentry) == OVL_PATH_MERGE) { | 453 | if (!od->is_upper && ovl_path_type(dentry) != OVL_PATH_LOWER) { |
454 | struct inode *inode = file_inode(file); | 454 | struct inode *inode = file_inode(file); |
455 | 455 | ||
456 | realfile =lockless_dereference(od->upperfile); | 456 | realfile = lockless_dereference(od->upperfile); |
457 | if (!realfile) { | 457 | if (!realfile) { |
458 | struct path upperpath; | 458 | struct path upperpath; |
459 | 459 | ||