Merge tag 'fscache-rewrite-20220111' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / fs / cachefiles / cache.c
index 8095192..ce4d478 100644 (file)
@@ -44,7 +44,7 @@ int cachefiles_add_cache(struct cachefiles_cache *cache)
        root = path.dentry;
 
        ret = -EINVAL;
-       if (mnt_user_ns(path.mnt) != &init_user_ns) {
+       if (is_idmapped_mnt(path.mnt)) {
                pr_warn("File cache on idmapped mounts not supported");
                goto error_unsupported;
        }