From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Aring Date: Tue, 2 Aug 2022 13:21:06 -0400 Subject: [Cluster-devel] [PATCH dlm/next 1/3] fs: dlm: allow lockspaces have zero lvblen Message-ID: <20220802172108.3396447-1-aahringo@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit A dlm user can never use DLM_LKF_VALBLK flag with DLM API calls so a zero lvblen should be allowed as per lockspace parameter. Signed-off-by: Alexander Aring --- fs/dlm/lockspace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/dlm/lockspace.c b/fs/dlm/lockspace.c index 0dc72756a0da..65fd60d8f2d5 100644 --- a/fs/dlm/lockspace.c +++ b/fs/dlm/lockspace.c @@ -416,7 +416,7 @@ static int new_lockspace(const char *name, const char *cluster, if (namelen > DLM_LOCKSPACE_LEN || namelen == 0) return -EINVAL; - if (!lvblen || (lvblen % 8)) + if (lvblen % 8) return -EINVAL; if (!try_module_get(THIS_MODULE)) -- 2.31.1