From: Patrick Farrell Date: Tue, 21 Dec 2021 16:34:53 +0000 (-0500) Subject: LU-15317 llite: Add FID to async ra iotrace X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F12%2F45912%2F6;p=fs%2Flustre-release.git 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 --- 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))