Merge tag 'mm-slub-5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka...
[linux-2.6-microblaze.git] / fs / overlayfs / super.c
index b01d414..178daa5 100644 (file)
@@ -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.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++) {