Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp125570lqi; Wed, 6 Mar 2024 11:56:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVE4DohRlNz2ECMFXNFsLQEsdOEq0dSHM/QqrL8V0ZhAb4Hws01U/U9Io7OOnTPqNS+W0ER1ZEchKvLeW/JRJQ6f7JaDtN1txLNOlePiw== X-Google-Smtp-Source: AGHT+IF5U1nw6eYCcWSPbEj48vPMQcv5OWfYtHdNr2yW1xRKwqMnMlD34RkTqfDxiNenFJ//Cpjo X-Received: by 2002:a50:ab04:0:b0:565:bc3d:d9dd with SMTP id s4-20020a50ab04000000b00565bc3dd9ddmr11499382edc.38.1709755005232; Wed, 06 Mar 2024 11:56:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709755005; cv=pass; d=google.com; s=arc-20160816; b=ozcdJdBoq6kRZjUCWcUy01g/h21OwysVSx8gzKcPFkZ0pF43Tuo1LW9oU77TgIHxvJ 6+tTyBM1H9GCITkHXNweP0t2UDtHbQ73XX2cb00i8B3EopgoYbpj+hQd4E87AP6h4+/w LCMctD/Lwu2rvSHP24V8CwU+MEa6/sW2N6oDdQ0UmQUuEkK6oWq3BSCGr6utadRk0yjN tUM1ohxOPw47Z4dTvl67LVD0NcHKKTpImyA8yt615tgewncJsqAoTC4WSd9Mr5GvkdBo Rx8lLNAiv+0zYnXDdCxlAPhvD9CsyEpv/osSltll613G98aYxxuYHGSxLs7fJ+X8qzTf dNaQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Ll+1Du/bb2u+urPB/fc9XN9sLdVfL/sTZ5PzpjIu2ds=; fh=ORYbokd09hnrBGDFm2Advj4YCUT4JMQUB0gXcRrzUe0=; b=o7vZDde6bAHPbRPEBIh8B23ixyHmbCfprLGFFt/1EzmikKhdpv2v4Aw59rAJ0g7Efv +/0+Uob+fma154xgnVaACtsLuqgPPkQ7V1UnkCxpL1+NkScYBmIRRCWAD/PD9eXnik5t 1J0fkJZRVwpF6i1PL9NhdV5VVb0gxdD82vg/ydFK8e3zYWTXI7ZIxnm21DaRLS40RGpp AF2F5IhMhYEGtbW8KmWxxbvUYAC0jGo00rRPMGzSBzjAqwSldaDR/glqKi/Fe6cCqbyW f86jZXQFr/GytzrVQb80SMtmspCDnkRbSLdWqqhUwC2ruzMc5BljY170thD7CJn0Ryl1 tNew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=KxJ6vkQd; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-94102-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94102-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id b14-20020a056402084e00b005665f21291csi6486179edz.71.2024.03.06.11.56.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 11:56:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94102-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=KxJ6vkQd; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-94102-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94102-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0C5AA1F261E6 for ; Wed, 6 Mar 2024 15:01:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7CD48134CF7; Wed, 6 Mar 2024 15:01:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="KxJ6vkQd" Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1145C28EC; Wed, 6 Mar 2024 15:01:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709737266; cv=none; b=qAuepCVH//Whx1Bz/It5X8ydmHMVjVKrsCYnEA5ptRd0lN5V0xJzgDQEaFSo91rj1vqYip/Kmwt45Tp6XxcrmJz03MvU6TfI0NrLCF3H5GioNAFQnav0XlGYmOdDkM4CD4CswF4AIrjMIxr3YRK5vltb42mXuAGfwsDnparXHUg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709737266; c=relaxed/simple; bh=KYmer60mc8PcsnZd2TV+zzjoRykr0eBCuDN/h8vjbwg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=aCSxLGHG/K4ZKea/GDgPHY0oJTY5RMvaSnrEvrT8jL7HG975LgU7mxlwAhhm87PQCcKuCn5n+Jsavnfb/PRwUonUZxx7fPjqWWGaDEdkU/5fYwT9CisJcVp4U3qGKiqw4P8I8Q+MPZ/w1YnV5rM0Jt2RTUKdnL3fwj4gRtKy0h4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=KxJ6vkQd; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Ll+1Du/bb2u+urPB/fc9XN9sLdVfL/sTZ5PzpjIu2ds=; b=KxJ6vkQdfAHSJmbCDtoi/lGO1Y Ib/OUrM9LDmlM7/MldSzsq2idBKgrgV5yB+8p5yWpO3h8S9pUC/ndAbwOK/tyYXsb8fYz3eKdyvTj SlVEOcZzTSGTLONhy5cIk6xui/bdcLZe3J8mOEdSVQ2Z8PtlH9bIS3hX3U7SA6xCNC2cvvbEofgcz 9woGMhw6c7FuVXuYI9DmYkSfOgkSRm8c7IsF/70Wzp016glqAfcDasFPivrftZjFq+QrsZdzv7JRX VvpiIn5/Rl8Z2OdZ6N4RmurFzMPBsqo57YhBkSdoeLn9iwixn/la+yJU0GooxiaFDGxd1wZfj9CTU 5FNh4biQ==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhslP-000000071Iu-4BNe; Wed, 06 Mar 2024 15:01:00 +0000 Date: Wed, 6 Mar 2024 15:00:59 +0000 From: Matthew Wilcox To: Colin Ian King Cc: Wedson Almeida Filho , Christian Brauner , linux-fsdevel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][next] hfsplus: remove dev_err message "xattr exists yet" Message-ID: References: <20240306124054.1785697-1-colin.i.king@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240306124054.1785697-1-colin.i.king@gmail.com> On Wed, Mar 06, 2024 at 12:40:54PM +0000, Colin Ian King wrote: > While exercising hfsplus with stress-ng with xattr tests the kernel > log was spammed with many "xattr exists yet" messages. The error > EOPNOTSUPP is returned, so the need to emit these error messages is > not necessary; removing them reduces kernel error spamming. Isn't that the wrong errno though? EOPNOTSUPP isn't listed as an errno in the fsetxattr manpage. ENOTSUP should be used for "xattrs are not supported". But this condition looks like EEXIST to me. > Signed-off-by: Colin Ian King > --- > fs/hfsplus/xattr.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/fs/hfsplus/xattr.c b/fs/hfsplus/xattr.c > index 9c9ff6b8c6f7..57101524fff4 100644 > --- a/fs/hfsplus/xattr.c > +++ b/fs/hfsplus/xattr.c > @@ -288,7 +288,6 @@ int __hfsplus_setxattr(struct inode *inode, const char *name, > > if (!strcmp_xattr_finder_info(name)) { > if (flags & XATTR_CREATE) { > - pr_err("xattr exists yet\n"); > err = -EOPNOTSUPP; > goto end_setxattr; > } > @@ -335,7 +334,6 @@ int __hfsplus_setxattr(struct inode *inode, const char *name, > > if (hfsplus_attr_exists(inode, name)) { > if (flags & XATTR_CREATE) { > - pr_err("xattr exists yet\n"); > err = -EOPNOTSUPP; > goto end_setxattr; > } > -- > 2.39.2 > >