summaryrefslogtreecommitdiff
path: root/fs/overlayfs/super.c
diff options
context:
space:
mode:
authorVyacheslav Yurkov <Vyacheslav.Yurkov@bruker.com>2021-05-27 19:45:46 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2021-08-17 11:47:44 +0200
commitca45275cd6b63e917eef681f9f15978b96afdbbe (patch)
tree58b6594d309fae717b4a8d5adeb876323a92fe94 /fs/overlayfs/super.c
parente4522bc8733dce1cb4443f1d506869781ee9caa8 (diff)
downloadlwn-ca45275cd6b63e917eef681f9f15978b96afdbbe.tar.gz
lwn-ca45275cd6b63e917eef681f9f15978b96afdbbe.zip
ovl: add ovl_allow_offline_changes() helper
Allows to check whether any of extended features are enabled Signed-off-by: Vyacheslav Yurkov <Vyacheslav.Yurkov@bruker.com> Reviewed-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/super.c')
-rw-r--r--fs/overlayfs/super.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
index 97ea35fdd933..178daa5e82c9 100644
--- a/fs/overlayfs/super.c
+++ b/fs/overlayfs/super.c
@@ -1599,9 +1599,7 @@ static bool ovl_lower_uuid_ok(struct ovl_fs *ofs, const uuid_t *uuid)
* user opted-in to one of the new features that require following the
* lower inode of non-dir upper.
*/
- if (!ofs->config.index && !ofs->config.metacopy &&
- !ofs->config.redirect_dir && ofs->config.xino != OVL_XINO_ON &&
- uuid_is_null(uuid))
+ if (ovl_allow_offline_changes(ofs) && uuid_is_null(uuid))
return false;
for (i = 0; i < ofs->numfs; i++) {