diff options
Diffstat (limited to 'fs/fsopen.c')
| -rw-r--r-- | fs/fsopen.c | 7 | 
1 files changed, 2 insertions, 5 deletions
| diff --git a/fs/fsopen.c b/fs/fsopen.c index 6593ae518115..ed2dd000622e 100644 --- a/fs/fsopen.c +++ b/fs/fsopen.c @@ -220,10 +220,6 @@ static int vfs_cmd_create(struct fs_context *fc, bool exclusive)  	if (!mount_capable(fc))  		return -EPERM; -	/* require the new mount api */ -	if (exclusive && fc->ops == &legacy_fs_context_ops) -		return -EOPNOTSUPP; -  	fc->phase = FS_CONTEXT_CREATING;  	fc->exclusive = exclusive; @@ -411,6 +407,7 @@ SYSCALL_DEFINE5(fsconfig,  		case FSCONFIG_SET_PATH:  		case FSCONFIG_SET_PATH_EMPTY:  		case FSCONFIG_SET_FD: +		case FSCONFIG_CMD_CREATE_EXCL:  			ret = -EOPNOTSUPP;  			goto out_f;  		} @@ -451,7 +448,7 @@ SYSCALL_DEFINE5(fsconfig,  		fallthrough;  	case FSCONFIG_SET_PATH:  		param.type = fs_value_is_filename; -		param.name = getname_flags(_value, lookup_flags, NULL); +		param.name = getname_flags(_value, lookup_flags);  		if (IS_ERR(param.name)) {  			ret = PTR_ERR(param.name);  			goto out_key; |