From 4bd78fa2145efa1e73e42a0c650de8da3fb3887c Mon Sep 17 00:00:00 2001 From: Patrick Farrell Date: Tue, 21 Dec 2021 11:34:53 -0500 Subject: [PATCH] LU-15317 llite: Add FID to async ra iotrace IOtrace log entries need to include the FID of the file concerned. Add this to async readahead. test-parameters: trivial Signed-off-by: Patrick Farrell Change-Id: I8d788969f29412ce88f1cafa229977f6efa20962 --- lustre/llite/rw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lustre/llite/rw.c b/lustre/llite/rw.c index 37726ae..c00fe87 100644 --- a/lustre/llite/rw.c +++ b/lustre/llite/rw.c @@ -592,9 +592,9 @@ static void ll_readahead_handle_work(struct work_struct *wq) sbi = ll_i2sbi(inode); CDEBUG(D_READA|D_IOTRACE, - "%s: async ra from %lu to %lu triggered by user pid %d\n", - file_dentry(file)->d_name.name, work->lrw_start_idx, - work->lrw_end_idx, work->lrw_user_pid); + "%s:"DFID": async ra from %lu to %lu triggered by user pid %d\n", + file_dentry(file)->d_name.name, PFID(ll_inode2fid(inode)), + work->lrw_start_idx, work->lrw_end_idx, work->lrw_user_pid); env = cl_env_alloc(&refcheck, LCT_NOREF); if (IS_ERR(env)) -- 1.8.3.1