Whamcloud - gitweb
LU-15317 llite: Add D_IOTRACE fixup
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 22 Jun 2022 23:25:38 +0000 (17:25 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 27 Jun 2022 02:10:17 +0000 (02:10 +0000)
Add missing changes between v2..v6 of the master patch.

Test-Parameters: trivial
Fixes: 321429093c86 ("LU-15317 llite: Add D_IOTRACE")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Id105bd681aa893bd0889f4567e49e57543db57fb
Reviewed-on: https://review.whamcloud.com/47703
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/llite/file.c

index e6b0675..b8f4f56 100644 (file)
@@ -1968,8 +1968,9 @@ static ssize_t ll_file_read_iter(struct kiocb *iocb, struct iov_iter *to)
 
        ENTRY;
 
-       CDEBUG(D_VFSTRACE|D_IOTRACE, "file %s, ppos: %lld, count: %zu\n",
-              file_dentry(file)->d_name.name, iocb->ki_pos,
+       CDEBUG(D_VFSTRACE|D_IOTRACE, "file %s:"DFID", ppos: %lld, count: %zu\n",
+              file_dentry(file)->d_name.name,
+              PFID(ll_inode2fid(file_inode(file))), iocb->ki_pos,
               iov_iter_count(to));
 
        if (!iov_iter_count(to))
@@ -2105,8 +2106,9 @@ static ssize_t ll_file_write_iter(struct kiocb *iocb, struct iov_iter *from)
 
        ENTRY;
 
-       CDEBUG(D_VFSTRACE|D_IOTRACE, "file %s, ppos: %lld, count: %zu\n",
-              file_dentry(file)->d_name.name, iocb->ki_pos,
+       CDEBUG(D_VFSTRACE|D_IOTRACE, "file %s:"DFID", ppos: %lld, count: %zu\n",
+              file_dentry(file)->d_name.name,
+              PFID(ll_inode2fid(file_inode(file))), iocb->ki_pos,
               iov_iter_count(from));
 
        if (!iov_iter_count(from))