瀏覽代碼

make simple_pin_fs() pass MS_KERNMOUNT - it's a kernel-internal one

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Al Viro 13 年之前
父節點
當前提交
2452992aa7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs/libfs.c

+ 1 - 1
fs/libfs.c

@@ -534,7 +534,7 @@ int simple_pin_fs(struct file_system_type *type, struct vfsmount **mount, int *c
 	spin_lock(&pin_fs_lock);
 	spin_lock(&pin_fs_lock);
 	if (unlikely(!*mount)) {
 	if (unlikely(!*mount)) {
 		spin_unlock(&pin_fs_lock);
 		spin_unlock(&pin_fs_lock);
-		mnt = vfs_kern_mount(type, 0, type->name, NULL);
+		mnt = vfs_kern_mount(type, MS_KERNMOUNT, type->name, NULL);
 		if (IS_ERR(mnt))
 		if (IS_ERR(mnt))
 			return PTR_ERR(mnt);
 			return PTR_ERR(mnt);
 		spin_lock(&pin_fs_lock);
 		spin_lock(&pin_fs_lock);