Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2579550rdd; Fri, 12 Jan 2024 14:21:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IGwL/BbYe1/3lQdQl7bWKd5EF45e5Ctbax99iZ423hufqXXID+HwQWltqeDVaR+JGDPWr55 X-Received: by 2002:a92:ce8a:0:b0:35f:f7f3:4c21 with SMTP id r10-20020a92ce8a000000b0035ff7f34c21mr1830218ilo.68.1705098071865; Fri, 12 Jan 2024 14:21:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705098071; cv=none; d=google.com; s=arc-20160816; b=m9att4YGBMx5dgSfDqBD72X7LXzAdMgTGQGbK4JDGrVkyYqXbEXx7Jm8dLOEAUJTfN yQEVN7FuqDhpDnQtUXlezH/cmq7zH1VXQMMQhRXsBHAodeRkT9UNJz6JvGY9eD46+ko/ MoX4PKWOXjoEp6SE6cZycPf69uBmhqRCR7wk28F3+y8PO6/c5Bu8FFYakC/6q3IvCyZ1 WpQpSR7MRGPSgWrNhGIJ0COasiwV8mp7EtJ/96mvCcXmgUBT2S9W0UiP5yyBYd9YhPwD 9S63h+DVw+7X0T2lJQi8qcTmO7YhefAJQpcVSZttRJT+4bhE0qfTyqzosZ/3QzG1I9XF XBYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=pZ1fE0zMIdBTRXTZzC0pYGjjHoVS0GZdkj3k4G9P/8k=; fh=HSbZBoqfPPu29USLL22LZlK5/916a1HOg8gfajXborE=; b=CmLEw4wJUEkAj4sEsvFyk2NArL1PXueCcBuhu4ALKz2tBDIrz1xVhCs0uE48NQg6/P Cht2RybPGX1lAO10ZuZNiZ3L7eThVFKEpKfODCTwJGm8Lf5ScHssuyTLn4XXHR4RBE9j AqZnOzEfdwnGUJAKmvT79S6IlWHpyDnaXugl0vCHFgE0naUcqM4mW+Kn6aclpRKIo1Me g1/RPMqo/yqKzJqKsPwAHBJFfUznfz2Odywb9y0c1q26ZrmNfN9Rnts6gJo3/l+P9NBU bBhRh6tUh3Dw9furCvQnlJl8KIsjduVjP4xQ1kp5OlST2PnDStgnvtJfCKHrAIHT5rZS CyvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HMZNmq5f; spf=pass (google.com: domain of linux-kernel+bounces-25066-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25066-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id y65-20020a636444000000b005cdfd749abesi4202118pgb.300.2024.01.12.14.21.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 14:21:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25066-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=@gmail.com header.s=20230601 header.b=HMZNmq5f; spf=pass (google.com: domain of linux-kernel+bounces-25066-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25066-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 E52B6B23C9C for ; Fri, 12 Jan 2024 22:20:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AD4341774A; Fri, 12 Jan 2024 22:20:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HMZNmq5f" Received: from mail-ot1-f50.google.com (mail-ot1-f50.google.com [209.85.210.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9FBE2179A6 for ; Fri, 12 Jan 2024 22:20:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ot1-f50.google.com with SMTP id 46e09a7af769-6dde5d308c6so2357438a34.0 for ; Fri, 12 Jan 2024 14:20:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705098006; x=1705702806; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=pZ1fE0zMIdBTRXTZzC0pYGjjHoVS0GZdkj3k4G9P/8k=; b=HMZNmq5fBG+6yintXaoXeHT/tPcZ1zDgVfeuy9UPQhW+vpTTISix/NGLeYnQwV1bzS Oglb9RHietWQSRx/Bdo2qVNdkO1LXyEdeIEMWy6Wg395rxNVWCAZ4clV8SL3PmWDk5Cn MYfJc/82rd/cR/jye+eu8J9atEvY/oD1KQNIAIGszsViuAlSr/QO5p0oU+HJcmYXOvdl YOU/szZx65RNaGeiNTCzv9DIUVx3vbD2U4GdrIJTo7vdWvly2N2Z6Fq9wKnkjDmnZfoU 5KQhvSEIi1WMkkZP7MF/i0MZcXh8K6UwVhIlxCq1fyaLEue/E5/jsL3Qd9XPiGmVPkgF qY8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705098006; x=1705702806; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pZ1fE0zMIdBTRXTZzC0pYGjjHoVS0GZdkj3k4G9P/8k=; b=jwcixcbUK0cbU0TUsL82scIkYfGEIyg4zS6P2wlrtkAPxuL4McElmrWVcBlFROXQbM bGUTJKW5hzEQez5Lxf76dBr2S3VCnqK/djdterxus96gz/tGa6v1zi5M6arsGDG/kNqW Q42OMSeddRpOGCITWsYkUJrZISgRJuV7YDWDCpEfm7AyyjUvzyfU+lrJiEmMUMznTAtx JkCjylcWqta019rPRaxNN3IOUCgbde/hPYGXiCxiUTYZeqUxDs006xnSzV486hi+LbMv gj+AjxSYs5l9Qor4vJFpEL+S+8qBStz0EyrLP5dAmVKYFOgbFfh1+L6uIOlfL+yA5TMD zObQ== X-Gm-Message-State: AOJu0YyabnKeil+RONsQaniDRcCA05LrUMDIS5Nmn6MjdVZF+LH9hITJ oF3ro+dcSI7Zd7YxNOypYNbIgRgQnB+VmOHyqJ0= X-Received: by 2002:a05:6830:718c:b0:6db:ffa6:6c4d with SMTP id el12-20020a056830718c00b006dbffa66c4dmr2586243otb.24.1705098006595; Fri, 12 Jan 2024 14:20:06 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240111064208.2969599-1-chao@kernel.org> <20240111064208.2969599-5-chao@kernel.org> In-Reply-To: <20240111064208.2969599-5-chao@kernel.org> From: Daeho Jeong Date: Fri, 12 Jan 2024 14:19:55 -0800 Message-ID: Subject: Re: [f2fs-dev] [PATCH v4 5/6] f2fs: fix to remove unnecessary f2fs_bug_on() to avoid panic To: Chao Yu Cc: jaegeuk@kernel.org, linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Reviewed-by: Daeho Jeong On Wed, Jan 10, 2024 at 10:43=E2=80=AFPM Chao Yu wrote: > > verify_blkaddr() will trigger panic once we inject fault into > f2fs_is_valid_blkaddr(), fix to remove this unnecessary f2fs_bug_on(). > > Fixes: 18792e64c86d ("f2fs: support fault injection for f2fs_is_valid_blk= addr()") > Signed-off-by: Chao Yu > --- > fs/f2fs/f2fs.h | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h > index 69e71460a950..ab710bb6d8b3 100644 > --- a/fs/f2fs/f2fs.h > +++ b/fs/f2fs/f2fs.h > @@ -3470,11 +3470,9 @@ bool f2fs_is_valid_blkaddr(struct f2fs_sb_info *sb= i, > static inline void verify_blkaddr(struct f2fs_sb_info *sbi, > block_t blkaddr, int type) > { > - if (!f2fs_is_valid_blkaddr(sbi, blkaddr, type)) { > + if (!f2fs_is_valid_blkaddr(sbi, blkaddr, type)) > f2fs_err(sbi, "invalid blkaddr: %u, type: %d, run fsck to= fix.", > blkaddr, type); > - f2fs_bug_on(sbi, 1); > - } > } > > static inline bool __is_valid_data_blkaddr(block_t blkaddr) > -- > 2.40.1 > > > > _______________________________________________ > Linux-f2fs-devel mailing list > Linux-f2fs-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel