[PATCH] dlm: clean up a type in waiters_read()

From: Dan Carpenter

Date: Thu Oct 01 2026 - 02:45:13 EST


This doesn't affect runtime but "rv" stores error codes and so
declare it as ssize_t instead of size_t.

Signed-off-by: Dan Carpenter <error27@xxxxxxxxx>
---
fs/dlm/debug_fs.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/dlm/debug_fs.c b/fs/dlm/debug_fs.c
index 700a0cbb2f14..f52a51b1382a 100644
--- a/fs/dlm/debug_fs.c
+++ b/fs/dlm/debug_fs.c
@@ -596,7 +596,8 @@ static ssize_t waiters_read(struct file *file, char __user *userbuf,
{
struct dlm_ls *ls = file->private_data;
struct dlm_lkb *lkb;
- size_t len = DLM_DEBUG_BUF_LEN, pos = 0, ret, rv;
+ size_t len = DLM_DEBUG_BUF_LEN, pos = 0, ret;
+ ssize_t rv;

mutex_lock(&debug_buf_lock);
ret = dlm_lock_recovery_try(ls);
--
2.53.0