Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp283945lqt; Thu, 6 Jun 2024 03:38:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWEApJW0SoiShSnkzibiRGethZr21myodty4bYN7Q630WiTKc/SKoZL3stX3B+HUGHa8oJs/EJRnLjpb9fMKwmAOWJx62BbZNK4iZ7xmA== X-Google-Smtp-Source: AGHT+IFS9L2wyINZVTA3knoeSI7ndMpDhKGacarYgxMrB9XrS01dw7YKhvTdPfqh2SH3yq6Z1atf X-Received: by 2002:a05:6a00:2387:b0:702:2749:6090 with SMTP id d2e1a72fcca58-703e5920c74mr6243076b3a.5.1717670290547; Thu, 06 Jun 2024 03:38:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717670290; cv=pass; d=google.com; s=arc-20160816; b=Yvefy0B8g3YNBVpEYX+/x1Uli4bgnXcbMRQYpLGCp9hL0v79SagZlWOCmrPt3zwuBP LgyGf/SLDl81XpPScIi9Wv/XkTvxbrUaFUoNunYMVkhPel5GcDnHxc4ica1NOGadpu+O sWfjss4VkjmyBAuT7+6LCxfi29ynvZdlg9Fdi+lPRY2j9agZypbscHEZkU7CHPsQRF3i mbrCX3ijdLp1aw/8wvPPvKr8jkOzj9hsBiCsbcpcfg+dOi7o9JCvgmEPvL/fFAw1ODaN 4NPPSDzYM7V84IIl6aJnpOOTDR6GzqN8TZb+SEcHhREtxDjXDnOHJwsZ185xjYL8/c9M nASw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=jR6C+wFdE3uOl2fRjQL/fyknAU7aLPEEszWnuwweJvA=; fh=X1/oBJvTGJUQ0YtRp03u+3tPfRw/dXXALWynfOSlfQQ=; b=M8diR9C1TfOHCdJxFXT5RX1T2rtWKK3miN1CBetA+zX8JjBN3Z3y+l93JlgLz9t6IG Tb7Pqu/hnTrbPZoIHeDDFzKqK3RuGUbHdxy8oPzgR1FTmNISBYcaUDSxFdawpl8G8b7M InA82G+z7XgwbKB/HpjCNBjD08hchqyOo/NFqv6xZ1kbxcmbDJl/nLz0aW+21gouT9zq KFbzag+TKOGi/tnxDjD3p3sjtyMzGwFf1iTT/D1tFwcTc/3TVJ90S4KyA0CSHqb1gDG8 KimmVjAQo937sN7lw+/d5bFyIC0yPSpvNjTW21f7nmvfkGyWjkXoO6vNBZmwsnxv+dXN 6Ulg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nGQ4XbpM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-204069-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204069-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de262c0216si930656a12.377.2024.06.06.03.38.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 03:38:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204069-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nGQ4XbpM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-204069-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204069-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 8F8CCB303C4 for ; Thu, 6 Jun 2024 09:56:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77DA317F4E6; Thu, 6 Jun 2024 09:56:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nGQ4XbpM" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 9BE6517E91B for ; Thu, 6 Jun 2024 09:56:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717667760; cv=none; b=TtULY5YetxbFId56t/GtOCd4okabRMxRI4yrg+lcyMuBBVUm9KwxJVA/Ed8qSEf2TM1cvljLHttgherct2NldX5uHqPfEcv3JKKevoCJIL5y5WYbe/0KfUfPv9mL1aX8csCkc8wYiWK/k5qCe+TuQJhWvTZ6NyrNQi/eXgFTJ4U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717667760; c=relaxed/simple; bh=taqzzIoM4pefR9En+zKIyMj3up5tKOsXWoFe6XXJE1U=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=uTV0LfOaacmZP8HOv1F8eMxIOVk5Q0C6VFGxgDpOzEYgjfXjs3w8BdJ/sY5OMlufMzrNWht8iXJ6DXCEMnLp9NLMSM/+dqZAlYNH5/zPkmbhSh6w2+kdWF1z9rUulpHKOkl1ooOwtFXeSgyq5AH1VpZl+34wsRq2VLP2YiSZT2I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nGQ4XbpM; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01782C32786; Thu, 6 Jun 2024 09:55:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717667760; bh=taqzzIoM4pefR9En+zKIyMj3up5tKOsXWoFe6XXJE1U=; h=From:To:Cc:Subject:Date:From; b=nGQ4XbpMf66u0zSZZspvZOCfAm70HsfKzEN59kFtS2za97f7TzHpX8UW1QeYY1N4G HPdg0tJp2j2w0rAGx6rpqj4OIi7eHlBAZde7jDsa6JLnwiP+gzyHGCY9m8YIHrZpfP DNUr8V5rrfbDG00TNgKMLxk2ZZJ67bXdjyJOIWtLaRW9ixD/3mxs1fjvFbsl2aUstC eI7BvLZa7FVLUYxJwIqJ1AyXn2NEJE0dr4Zl6Qwm78coTMFOVBn/juo5jUmYkYmL0R Lea3GYdnAbChnteWrOQI+WgzwxieHxcZtwlk/27rYgi/ndHeGIa6VJQWmz2VbCxmtG 8GkDGKPklncAw== From: Chao Yu To: jaegeuk@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Chao Yu Subject: [PATCH] f2fs: remove redundant sanity check in sanity_check_inode() Date: Thu, 6 Jun 2024 17:55:51 +0800 Message-Id: <20240606095551.4089055-1-chao@kernel.org> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Commit f240d3aaf5a1 ("f2fs: do more sanity check on inode") missed to remove redundant sanity check on flexible_inline_xattr flag, fix it. Signed-off-by: Chao Yu --- fs/f2fs/inode.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c index 87982e06bbe7..a3456b29b5ff 100644 --- a/fs/f2fs/inode.c +++ b/fs/f2fs/inode.c @@ -312,10 +312,6 @@ static bool sanity_check_inode(struct inode *inode, struct page *node_page) if (!sanity_check_compress_inode(inode, ri)) return false; } - } else if (f2fs_sb_has_flexible_inline_xattr(sbi)) { - f2fs_warn(sbi, "%s: corrupted inode ino=%lx, run fsck to fix.", - __func__, inode->i_ino); - return false; } if (!f2fs_sb_has_extra_attr(sbi)) { -- 2.40.1