cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] [PATCH dlm/next 1/3] fs: dlm: allow lockspaces have zero lvblen
@ 2022-08-02 17:21 Alexander Aring
  2022-08-02 17:21 ` [Cluster-devel] [PATCH dlm/next 2/3] fs: dlm: const void resource name parameter Alexander Aring
  2022-08-02 17:21 ` [Cluster-devel] [PATCH dlm/next 3/3] fs: dlm: initial commit of locktorture Alexander Aring
  0 siblings, 2 replies; 3+ messages in thread
From: Alexander Aring @ 2022-08-02 17:21 UTC (permalink / raw)
  To: cluster-devel.redhat.com

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 <aahringo@redhat.com>
---
 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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-08-02 17:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-02 17:21 [Cluster-devel] [PATCH dlm/next 1/3] fs: dlm: allow lockspaces have zero lvblen Alexander Aring
2022-08-02 17:21 ` [Cluster-devel] [PATCH dlm/next 2/3] fs: dlm: const void resource name parameter Alexander Aring
2022-08-02 17:21 ` [Cluster-devel] [PATCH dlm/next 3/3] fs: dlm: initial commit of locktorture Alexander Aring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).