Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp511161imn; Tue, 26 Jul 2022 01:51:13 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vkGAn+PkpPKHvrVoIOggvjiYcUjgrdoBoN+Q1F/7CXbsp7dZLZAw9cXdSY6z5PCHFWbpnj X-Received: by 2002:a17:907:6d1d:b0:72b:6d8a:ca64 with SMTP id sa29-20020a1709076d1d00b0072b6d8aca64mr13210726ejc.371.1658825473339; Tue, 26 Jul 2022 01:51:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658825473; cv=none; d=google.com; s=arc-20160816; b=WqWKUhXUdiBzQOnv52xpnBnorovNjvFokMbLEIxMFZkDdubCyAVFlAcePeAbZSpBn1 NrIc8gKwpoisyJR84ljh/YSxsKysPK+GYOdwauGgiKDVMkg/nnBnqQr0ro+lL9URSJYg eqv8T7S2vQRhWqw0K3k80QOpJMLzK8xQLgwK2agTD0s/3Y55rH3Da+YGF6qXLxnX0M3T K6vDpoSeNPFarPoW2xkk26b1imfVHWPVRci4h3XgoT6SWdkCK0baX2tM/O7eHptFUBT5 lY66JjioCTJfIQv5YpsaEVkw0h2gLnqT2nRafnVeTp3VvQUQhl8cb4hdfMoJLCRDbI1r yQjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=8sC6TOUOa2fUJaaIzlatUrA9lcMWdgpyfpzmTF7peu8=; b=iVYk4R8W+Dl43KDED48OMmJ4F3AZHvXXKztEGMFQuYgtw7Lir6QELlYVjdS+ALEyQU jUdm4lGJLBh6PZC0leTfuPifsoEhfSVIfXo81awZjomeG+f+gvZNOrJXHoy+BRQPlwwn bipg7PB71ccb7uEQwv+zbE0RxzFPGB3hqazhl7ZL94g+ZWCu7LMatm8lVNugsF5EWZh+ 2hIkD3rw50p6rek7DLVpCvaTaezCBJ9jGPCk8ZKqwvavWg7TYHMpy1UedETmfl/K5Lqo ++F2jwNALuRMBS5Gu2/RalKO9vnNkL0x8yDVc5T8XFafNpgXfzUmU28Q1uEyTCWcxtjw O69A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=kvLofho2; dkim=neutral (no key) header.i=@suse.de header.b=JD5Xzv3R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dm5-20020a170907948500b0072f4b12916fsi875751ejc.395.2022.07.26.01.50.47; Tue, 26 Jul 2022 01:51:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=kvLofho2; dkim=neutral (no key) header.i=@suse.de header.b=JD5Xzv3R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238636AbiGZIjo (ORCPT + 99 others); Tue, 26 Jul 2022 04:39:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232343AbiGZIje (ORCPT ); Tue, 26 Jul 2022 04:39:34 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC0692F66A; Tue, 26 Jul 2022 01:39:33 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 86602374D1; Tue, 26 Jul 2022 08:39:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1658824772; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8sC6TOUOa2fUJaaIzlatUrA9lcMWdgpyfpzmTF7peu8=; b=kvLofho28b2Vz1ZBPuS7xbMPjjy9aw8K0rFniuSSDeIzGJZUZjCKOr7Hc0dWY7b/5TgVrn NUemp69cxP1k1iCOA6oI054bFM4OJ/C3xVL36mpDf5McL1RfnmDlqfD7DJ5IQJIywiBi+j 55bfxfqm09p2iKhzozhXuSRm7tXk+iY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1658824772; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8sC6TOUOa2fUJaaIzlatUrA9lcMWdgpyfpzmTF7peu8=; b=JD5Xzv3RS/x9B1IaYe39DUje+CruqCbi105k03+vARoLzof0XCL8zmCd3xtaCYdDnjDOq4 y55bst0pq0+9fWAQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 4E34713A7C; Tue, 26 Jul 2022 08:39:32 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id yJRUEkSo32LYDQAAMHmgww (envelope-from ); Tue, 26 Jul 2022 08:39:32 +0000 From: Takashi Iwai To: linux-fsdevel@vger.kernel.org Cc: Namjae Jeon , Sungjong Seo , Petr Vorel , Joe Perches , linux-kernel@vger.kernel.org Subject: [PATCH v2 4/5] exfat: Downgrade ENAMETOOLONG error message to debug messages Date: Tue, 26 Jul 2022 10:39:28 +0200 Message-Id: <20220726083929.1684-5-tiwai@suse.de> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220726083929.1684-1-tiwai@suse.de> References: <20220726083929.1684-1-tiwai@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The ENAMETOOLONG error message is printed at each time when user tries to operate with a too long name, and this can flood the kernel logs easily, as every user can trigger this. Let's downgrade this error message level to a debug message for suppressing the superfluous logs. BugLink: https://bugzilla.suse.com/show_bug.cgi?id=1201725 Reviewed-by: Petr Vorel Signed-off-by: Takashi Iwai --- fs/exfat/nls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/exfat/nls.c b/fs/exfat/nls.c index ef115e673406..617aa1272265 100644 --- a/fs/exfat/nls.c +++ b/fs/exfat/nls.c @@ -509,7 +509,7 @@ static int exfat_utf8_to_utf16(struct super_block *sb, } if (unilen > MAX_NAME_LENGTH) { - exfat_err(sb, "failed to %s (estr:ENAMETOOLONG) nls len : %d, unilen : %d > %d", + exfat_debug(sb, "failed to %s (estr:ENAMETOOLONG) nls len : %d, unilen : %d > %d", __func__, len, unilen, MAX_NAME_LENGTH); return -ENAMETOOLONG; } -- 2.35.3