From patchwork Thu Jan 11 02:08:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rock Lee X-Patchwork-Id: 858688 X-Patchwork-Delegate: richard@nod.at Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="QSAXzYQO"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="t6LJUelc"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zH8SP0LvCz9sNc for ; Thu, 11 Jan 2018 13:08:53 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=mtA4UiQeiTJA9GlvJH8Bvi3rBmiG1zytHZehGz5ZYJI=; b=QSA XzYQOGRNDMj7o7PewwbM+B1QHHOlWOxjKw0cbRQCnz8vs77+CGdWYSamnsXDhC75o8Zoa5BHBInvV fsbN1A31R9LmPfXXYMAhqVrLrMSiW3CuBFwVzMTkSnJ7Gj9VB8KDFnD02IbUVQdjlyQgJi4o2WxJy 2mm+VB+ktvqrYzrvLaCFr1OmbXXRuZ+jtpUefsiZR0ykZEGxC9M8+wpg0ABxPK7kUWdDwfABtmnnd n5H+XOCIUQuVh7SR42v9I7Z1Hg6clY0pWQZ5yLvLnX1CDFuryd7wR2nthF1xKzHRy3muV5p6ZEAeY 7tcwxhOtGAEDh9wLSSB10+ayctuY84Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eZSIS-0002Ac-HU; Thu, 11 Jan 2018 02:08:48 +0000 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eZSIM-00029j-Av for linux-mtd@lists.infradead.org; Thu, 11 Jan 2018 02:08:44 +0000 Received: by mail-pg0-x241.google.com with SMTP id f14so1603836pga.10 for ; Wed, 10 Jan 2018 18:08:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=zVz0qsgSafMyPpoUx/KB2L6rw12hZQagulOEy5Rr0lE=; b=t6LJUelcPDJezrCwHYmkuT2WNSL/fUj9VsC4DVd0cnmI+QfUg0aGY8tScnGl1FKz0L zYI8p/LFpwchcKC/YUMGcrmXrRfiIMPhF2hwdSvz/+6BTmJ1JW1QbKPNBrw1D0WgOdRk hemGgPPqrygRzK4vRTJ+zn219+0vLvv5qsnZY7qSajTfev3IktBJIA0qlyeyOUtZ6Fz8 28OhtvT9qq+ImFhk5uWM+dtm56dlLE7tX9sXqehPwohodQwwcL3X3NrQH0M300UM1YmE evrlC+3Mcjq6BWoVHOc/ugGEbyYFKCszI6PGGqtnkm/glvJIvWirufzDPgB52UTazotb KwZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=zVz0qsgSafMyPpoUx/KB2L6rw12hZQagulOEy5Rr0lE=; b=EUXSK9VGzPttDOjNFNcXhEpgNweCvDm8WGyyGMWaS7tU4WmmMXCRUITzJQAZ4KLPEE fxCSGRyRgk+F4rYyyD4Ek2uOGR+wqybKqAJ7BwGtfLKdq2nCaQCLRU/d9ehRiGhJRBsr yRmQsAAipNeHOyUDCVpMYQZCb+b/ZDPZmfGmF1QrItC8+G/khuBFA+jlnVXUxWtqKYEX e6zisuUiXKNc84wPsMyNOl1Svqnh4ECcMlMbAU7xoP8rCjus+7AgWvg2brC98FFABu5b N7IWe6xtST+ThE8E+8raRzWd/0ZFWwm+GUUABY9KCmJ/EwYahv5ToWiiAY40eDJa/0gd 9Nsw== X-Gm-Message-State: AKGB3mLzh3qMQ9d7BRWmgpOPDgzCLrikXhTpy/oJwE9mkk7fBd9fVDg2 P4wgRxUP0W+R4SkkReejIRyOmiOW X-Google-Smtp-Source: ACJfBoutlxtPB3PfaDCbzBzc+WEB2L3g0h1KTI0vAwSzhfF7xDFiqC5kFa7ja5xQUQtD3J+fztgh3g== X-Received: by 10.101.80.72 with SMTP id k8mr16080117pgo.6.1515636511361; Wed, 10 Jan 2018 18:08:31 -0800 (PST) Received: from localhost.localdomain (65.49.211.218.16clouds.com. [65.49.211.218]) by smtp.gmail.com with ESMTPSA id q7sm32404830pgf.10.2018.01.10.18.08.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Jan 2018 18:08:30 -0800 (PST) From: rockdotlee@gmail.com To: linux-mtd@lists.infradead.org Subject: [PATCH] ubifs: remove error message in ubifs_xattr_get Date: Wed, 10 Jan 2018 21:08:24 -0500 Message-Id: <1515636504-7660-1-git-send-email-rockdotlee@gmail.com> X-Mailer: git-send-email 1.7.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180110_180842_410884_B7B9785C X-CRM114-Status: UNSURE ( 9.08 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:400e:c05:0:0:0:241 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (rockdotlee[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rock Lee , richard@nod.at, adrian.hunter@intel.com, dedekind1@gmail.com MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Rock Lee There is a situation that other modules, like overlayfs, try to get xattr value with a small buffer, if they get -ERANGE, they will try again with the proper buffer size. No need to report an error. Signed-off-by: Rock Lee --- fs/ubifs/xattr.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/ubifs/xattr.c b/fs/ubifs/xattr.c index c13eae8..1615270 100644 --- a/fs/ubifs/xattr.c +++ b/fs/ubifs/xattr.c @@ -380,8 +380,6 @@ ssize_t ubifs_xattr_get(struct inode *host, const char *name, void *buf, if (buf) { /* If @buf is %NULL we are supposed to return the length */ if (ui->data_len > size) { - ubifs_err(c, "buffer size %zd, xattr len %d", - size, ui->data_len); err = -ERANGE; goto out_iput; }