From 67d4e8d197dfe0167ff3db199bdbaff6f32edf9f Mon Sep 17 00:00:00 2001 From: lsy Date: Wed, 21 Sep 2005 10:08:19 +0000 Subject: [PATCH] don't make too much noise. --- lustre/obdclass/capa.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lustre/obdclass/capa.c b/lustre/obdclass/capa.c index a085cf6..a15fe61 100644 --- a/lustre/obdclass/capa.c +++ b/lustre/obdclass/capa.c @@ -120,13 +120,6 @@ find_capa(struct hlist_head *head, uid_t uid, int capa_op, __u64 mdsid, return ocapa; } - if (atomic_read(&ll_capa_stat)) { - CDEBUG(D_ERROR, "find capa for (uid %u, op %d, mdsid "LPU64"," - " ino %lu igen %u, type %d) failed.\n", - (unsigned) uid, capa_op, mdsid, ino, igen, type); - atomic_set(&ll_capa_stat, 0); - } - return NULL; } @@ -331,6 +324,13 @@ capa_get(uid_t uid, int capa_op,__u64 mdsid, unsigned long ino, ocapa = find_capa_locked(head, uid, capa_op, mdsid, ino, igen, type); + if (ocapa == NULL && type == CLIENT_CAPA && atomic_read(&ll_capa_stat)){ + CDEBUG(D_ERROR, "find capa for (uid %u, op %d, mdsid "LPU64"," + " ino %lu igen %u, type %d) failed.\n", + (unsigned) uid, capa_op, mdsid, ino, igen, type); + atomic_set(&ll_capa_stat, 0); + } + return ocapa; } -- 1.8.3.1