aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dlm/user.c
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2022-08-15 15:43:25 -0400
committerDavid Teigland <teigland@redhat.com>2022-08-23 14:54:54 -0500
commit12cda13cfd5310bbfefdfe32a82489228e2e0381 (patch)
treebf6e91c18a8ae5e5f6513057936bf23a945e848f /fs/dlm/user.c
parent7a3de7324c2b1299a4f595bb6aa503c878ad7d75 (diff)
downloadlinux-12cda13cfd5310bbfefdfe32a82489228e2e0381.tar.gz
fs: dlm: remove DLM_LSFL_FS from uapi
The DLM_LSFL_FS flag is set in lockspaces created directly for a kernel user, as opposed to those lockspaces created for user space applications. The user space libdlm allowed this flag to be set for lockspaces created from user space, but then used by a kernel user. No kernel user has ever used this method, so remove the ability to do it. Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/user.c')
-rw-r--r--fs/dlm/user.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/dlm/user.c b/fs/dlm/user.c
index ca27f276a3f5a..c5d27bccc3dc4 100644
--- a/fs/dlm/user.c
+++ b/fs/dlm/user.c
@@ -423,9 +423,9 @@ static int device_create_lockspace(struct dlm_lspace_params *params)
if (!capable(CAP_SYS_ADMIN))
return -EPERM;
- error = dlm_new_lockspace(params->name, dlm_config.ci_cluster_name, params->flags,
- DLM_USER_LVB_LEN, NULL, NULL, NULL,
- &lockspace);
+ error = dlm_new_user_lockspace(params->name, dlm_config.ci_cluster_name,
+ params->flags, DLM_USER_LVB_LEN, NULL,
+ NULL, NULL, &lockspace);
if (error)
return error;