fs: dlm: Simplify buffer size computation in dlm_create_debug_file()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 10 Oct 2023 22:04:41 +0000 (18:04 -0400)
committerDavid Teigland <teigland@redhat.com>
Thu, 12 Oct 2023 20:19:29 +0000 (15:19 -0500)
commit19b3102c0b5350621e7492281f2be0f071fb7e31
tree69c3c327b2955a63ed1319699ac6532c032741d5
parent94f6f0550c625fab1f373bb86a6669b45e9748b3
fs: dlm: Simplify buffer size computation in dlm_create_debug_file()

Use sizeof(name) instead of the equivalent, but hard coded,
DLM_LOCKSPACE_LEN + 8.

This is less verbose and more future proof.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/debug_fs.c