Whamcloud - gitweb
LU-19099 llite: Add vfstrace debug prints for ll_fallocate 18/59718/3
authorOleg Drokin <green@whamcloud.com>
Wed, 11 Jun 2025 22:49:10 +0000 (18:49 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 17 Jun 2025 02:49:34 +0000 (02:49 +0000)
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 <green@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/59718
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Emoly Liu <emoly@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/llite/file.c

index 5b6073d..fdd0ebc 100644 (file)
@@ -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);
        /*