From c92cc0c9062bd4c99983c766d4e5e73622e0ea05 Mon Sep 17 00:00:00 2001 From: Oleg Drokin Date: Wed, 11 Jun 2025 18:49:10 -0400 Subject: [PATCH] LU-19099 llite: Add vfstrace debug prints for ll_fallocate Currently ll_fallocate() does not have any vfstrace prints, but it's important for debugging related issues. Fixes: 48457868a02a ("LU-3606 fallocate: Implement fallocate preallocate operation") Test-Parameters: trivial Change-Id: I165a7208a59b055756db416063c6695cc7f2d8e4 Signed-off-by: Oleg Drokin Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/59718 Reviewed-by: Andreas Dilger Reviewed-by: Arshad Hussain Reviewed-by: Emoly Liu Tested-by: jenkins Tested-by: Maloo --- lustre/llite/file.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lustre/llite/file.c b/lustre/llite/file.c index 5b6073d..fdd0ebc 100644 --- a/lustre/llite/file.c +++ b/lustre/llite/file.c @@ -6588,6 +6588,9 @@ static long ll_fallocate(struct file *filp, int mode, loff_t offset, loff_t len) struct inode *inode = file_inode(filp); int rc; + CDEBUG(D_VFSTRACE, "VFS Op: "DNAME", mode %x, offset %lld, len %lld\n", + encode_fn_file(filp), mode, offset, len); + if (offset < 0 || len <= 0) RETURN(-EINVAL); /* -- 1.8.3.1