Whamcloud - gitweb
LU-19099 llite: Add vfstrace debug prints for ll_fallocate
authorOleg Drokin <green@whamcloud.com>
Wed, 11 Jun 2025 22:49:10 +0000 (18:49 -0400)
committerOleg Drokin <green@linuxhacker.ru>
Thu, 12 Jun 2025 21:17:18 +0000 (17:17 -0400)
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>
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);
        /*