Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp490345rdb; Thu, 8 Feb 2024 11:34:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUuOO0VCnr6A5rjzBbllchoBwTxALTTTY8KxPLpJf28mWYI57SdG2tLd0BzJAohrZmB2CGxSSqXDOv84o/DevtptZ1gjt+REoIaQkv+Qg== X-Google-Smtp-Source: AGHT+IEOCKS2D1u/3Zl70QSCqBZsznEEWLkfsxDxL2DkafsoTWAqG1czwpBg/BeIhqvvJlRgezYu X-Received: by 2002:a05:620a:4007:b0:785:b24f:5e96 with SMTP id h7-20020a05620a400700b00785b24f5e96mr581136qko.38.1707420893331; Thu, 08 Feb 2024 11:34:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707420893; cv=pass; d=google.com; s=arc-20160816; b=dzUfMB9r0LZHgZQkmcouo37jkDShTFp5yXVRw/rvLZdr1q8snaLA/IHsSA4QocgT5V SbpxeLx+xldQtU1zPFusP2VJj43Vjk7iCLhP0stgn37PI0WColABGBZMVKhnbrrZSir6 StVGKQ1kuUmLKgRRikvzYH9ywthUu0cb+mND3BVw0XaAvBsRP/4ld5I/2fD6LBE4g9OL eVXZq9viAUr+9WX/RhswFYPen1prcO9HeHB248jgMfiG+DEv/zirvOUkgJs/4axqHQga WD7SnW2PdhoiuxhIW3WgRFuBOxjnPZ3IY6pr9jb4js5JZsbVxKyuB6/eImmAdly1O+EM 9d6Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=RyNnzetG/y04wI5Td0Utv6vKIxLzXKNKLyD8MPft9hY=; fh=f97ou0j3rqvcfOWmPxFfXVuvZkieoUzlVCswAxKs9as=; b=D1Ub8kwf/OQi6eq5KtHCXEUqbfYTPoamNoJHHdJt/IWeI92JF8Hm8CPly/yEMvWniO izvTAK3XGATBUtbzC5xwS+ICdvnHvXNl/lMqO23jjlzog7WyRm+cPDVV+qrv6kuJ2H3f J5QJoDqeoV7sRqgOV8UxWyPEbrXF/QHQVaR0EkML/HbsmgeS5OSY85BSviIfaKlIcNcJ C9hfcJ0/ufOkxQOWV5ML28r6Bgyv9wa8utzs6uYzhYKFB8sgc/rIiP04b1K6kxJglllX 7r4c/W2xRmQ1K8x0pTWrtyzxnoH6A0sbkzNuNt0Qg77nDql0ypYOecFLZFNNPYlfyHr4 m2TQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FSerNsBx; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-58626-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58626-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCVLNjKBfXvYeO3epclMMsryPBNKwZ2Glw1ELq+ky0y7rh1yaeFwYGEqGQQ5PN9sWVuuENacfEOhww8BbdN1WWtoi6ktGwIcAsnXPcHjmA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b16-20020a05620a089000b007859fecd2d8si262269qka.494.2024.02.08.11.34.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 11:34:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58626-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FSerNsBx; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-58626-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58626-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0691C1C21A04 for ; Thu, 8 Feb 2024 19:34:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A0649381BE; Thu, 8 Feb 2024 19:34:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="FSerNsBx" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (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 47189149DFF; Thu, 8 Feb 2024 19:34:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707420879; cv=none; b=Wlymc8d532wRvj/RFyui5Sn/gkdCAo7Pei6O0IvgANtY8DrFhqJMZ3djzmkww1HWDrwSOvoLaTo4B9oVeNEHdOqQYN7bGnGXI6/cUUyDBlxk4i4SPfdpsoZHvaHkEmdjpGaotwDou1sajsjQHsNipsj+8A67uoxgKIaEfbD0R74= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707420879; c=relaxed/simple; bh=jfFt98aIUuomsKcXihueoohkKAJPf25VK+fpiRdbjcM=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=pK1gnQglN2EMfWK/wru5BhBtVvRJRVbcb/eRH24/xAA7HMMGD5yIRR18hvEp1WoJTHEs8jWeg7HzuxncMd1WEiH66Bc2OEouyFfSiptst3IT9NMqsw3ZQpokkl8QNRsmrKzKiTOJ73Ovc48fQ9A3luegdR8u/zZ9VhBfdY2hI4A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=FSerNsBx; arc=none smtp.client-ip=192.198.163.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707420878; x=1738956878; h=message-id:subject:from:to:cc:date:in-reply-to: references:content-transfer-encoding:mime-version; bh=jfFt98aIUuomsKcXihueoohkKAJPf25VK+fpiRdbjcM=; b=FSerNsBxAfqzw8TWiiAZ75aTZsEqND7yffMFQ4+t/srPWzvhTXtMQdEs sPpiDppNZteVMdLkaXiEpoEQ90FvdWqwKw1j9UxKyeV02h2BLRnGc9Y/o 08NKiaJAos6PSnFnDj1Q8zgtwqd5NnAbmjuFHM6rTCq2BE8nfUj/1Yn4w roWnNegROrln7ZwCVnRI8Q0r0/iL0fD+bIu/xKgAoC96BqHqnH116kzH4 V2Sunw6750PUOf11B9n+lhso8EnYtX0MeckX4yMBtdbC87jpqLe8oKeIn MlF/n7pDmEiyXqYkHk2jwzIuwFPly8lNShfUTJAj8oSlRLOmvAXC1fJL9 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10978"; a="26750608" X-IronPort-AV: E=Sophos;i="6.05,254,1701158400"; d="scan'208";a="26750608" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2024 11:34:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,254,1701158400"; d="scan'208";a="1774319" Received: from ercutler-mobl.amr.corp.intel.com (HELO [10.209.94.1]) ([10.209.94.1]) by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2024 11:34:37 -0800 Message-ID: <623f1fe08c8bbd7e49f2dc124892ac864cd7dac0.camel@linux.intel.com> Subject: Re: [PATCH 4/7] fs/writeback: remove unneeded check in writeback_single_inode From: Tim Chen To: Kemeng Shi , viro@zeniv.linux.org.uk, brauner@kernel.org, jack@suse.cz Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 08 Feb 2024 11:34:36 -0800 In-Reply-To: <20240208172024.23625-5-shikemeng@huaweicloud.com> References: <20240208172024.23625-1-shikemeng@huaweicloud.com> <20240208172024.23625-5-shikemeng@huaweicloud.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 (3.44.4-2.fc36) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Fri, 2024-02-09 at 01:20 +0800, Kemeng Shi wrote: > I_DIRTY_ALL consists of I_DIRTY_TIME and I_DIRTY, so I_DIRTY_TIME must > be set when any bit of I_DIRTY_ALL is set but I_DIRTY is not set. /s/any bit of/some bit in/ >=20 > Signed-off-by: Kemeng Shi Reviewed by: Tim Chen > --- > fs/fs-writeback.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c > index 2619f74ced70..b61bf2075931 100644 > --- a/fs/fs-writeback.c > +++ b/fs/fs-writeback.c > @@ -1788,7 +1788,7 @@ static int writeback_single_inode(struct inode *ino= de, > else if (!(inode->i_state & I_SYNC_QUEUED)) { > if ((inode->i_state & I_DIRTY)) > redirty_tail_locked(inode, wb); > - else if (inode->i_state & I_DIRTY_TIME) { > + else { > inode->dirtied_when =3D jiffies; > inode_io_list_move_locked(inode, > wb,