]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: lustre: llite: clarify some debug messages for statahead
authorwang di <di.wang@intel.com>
Fri, 22 Jul 2016 02:44:08 +0000 (22:44 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Aug 2016 16:31:06 +0000 (18:31 +0200)
Make some of the error reporting more clear for the statahead
thread startup and is_first_dirent() function.

Signed-off-by: wang di <di.wang@intel.com>
Reviewed-on: http://review.whamcloud.com/7043
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3531
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/statahead.c

index 6d9368c1dfd6dcf7ee6a20f4972c6ec7da5484ab..b1994a7dfb49b75737a439e573353676fd723eed 100644 (file)
@@ -1075,9 +1075,9 @@ static int ll_statahead_thread(void *arg)
 
                if (IS_ERR(page)) {
                        rc = PTR_ERR(page);
-                       CDEBUG(D_READA, "error reading dir "DFID" at %llu/%llu: [rc %d] [parent %u]\n",
+                       CDEBUG(D_READA, "error reading dir "DFID" at %llu/%llu: opendir_pid = %u: rc = %d\n",
                               PFID(ll_inode2fid(dir)), pos, sai->sai_index,
-                              rc, plli->lli_opendir_pid);
+                              plli->lli_opendir_pid, rc);
                        goto out;
                }
 
@@ -1364,9 +1364,10 @@ static int is_first_dirent(struct inode *dir, struct dentry *dentry)
                        struct ll_inode_info *lli = ll_i2info(dir);
 
                        rc = PTR_ERR(page);
-                       CERROR("error reading dir "DFID" at %llu: [rc %d] [parent %u]\n",
+                       CERROR("%s: error reading dir "DFID" at %llu: opendir_pid = %u : rc = %d\n",
+                              ll_get_fsname(dir->i_sb, NULL, 0),
                               PFID(ll_inode2fid(dir)), pos,
-                              rc, lli->lli_opendir_pid);
+                              lli->lli_opendir_pid, rc);
                        break;
                }