]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gfs2: only apply DLM_LKF_VALBLK if sb_lvbptr is not NULL
authorAlexander Aring <aahringo@redhat.com>
Mon, 7 Apr 2025 18:45:38 +0000 (14:45 -0400)
committerAndreas Gruenbacher <agruenba@redhat.com>
Mon, 21 Apr 2025 16:20:36 +0000 (18:20 +0200)
commitff22e5da42c0adfacfa85f315b90af3706d955bd
treed21d03c9aef59c8b38cfb374e38864ce7df0be8b
parentac5ee087d31ed93b6e45d2968a66828c6f621d8c
gfs2: only apply DLM_LKF_VALBLK if sb_lvbptr is not NULL

Currently, gfs2 always sets the DLM_LKF_VALBLK flag to enable lvb
handling even when sb_lvbptr is NULL.  This currently causes no problems
because DLM ignores the DLM_LKF_VALBLK flag when sb_lvbptr is NULL, but
it does violate the DLM API.  Fix that by only setting DLM_LKF_VALBLK
when sb_lvbptr is not NULL.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/lock_dlm.c