1
2
3
4
5
6
7
8
9
10
11
12
13
14 | diff --git a/fs/super.c b/fs/super.c
index 732bffa..1f2bfd7 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -471,7 +471,8 @@ retry:
hlist_for_each_entry(old, &type->fs_supers, s_instances) {
if (!test(old, data))
continue;
- if (user_ns != old->s_user_ns) {
+ if ((type->fs_flags & FS_REQUIRES_DEV) &&
+ user_ns != old->s_user_ns) {
spin_unlock(&sb_lock);
return ERR_PTR(-EBUSY);
}
|