From ef26f8def9009015044384317a8dce121efe0792 Mon Sep 17 00:00:00 2001
From: alex <alex>
Date: Tue, 27 Jul 2004 12:32:15 +0000
Subject: [PATCH] - don't show error message in replay case

---
 lustre/mds/mds_reint.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lustre/mds/mds_reint.c b/lustre/mds/mds_reint.c
index 836fa105f5..f424b76bb7 100644
--- a/lustre/mds/mds_reint.c
+++ b/lustre/mds/mds_reint.c
@@ -1431,8 +1431,10 @@ int mds_create_local_dentry(struct mds_update_record *rec,
         }
 
         if (IS_ERR(child)) {
-                CERROR("can't get victim: %d\n", (int) PTR_ERR(child));
-                GOTO(cleanup, rc = PTR_ERR(child));
+                rc = PTR_ERR(child);
+                if (rc != -ENOENT || !(rec->ur_mode & MDS_MODE_REPLAY))
+                        CERROR("can't get victim: %d\n", rc);
+                GOTO(cleanup, rc);
         }
         cleanup_phase = 2;
 
-- 
GitLab