From mboxrd@z Thu Jan 1 00:00:00 1970 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 E3EC6246BC6 for ; Sun, 4 Jan 2026 02:08:17 +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=1767492498; cv=none; b=buEjlzNAJfSQp9KUBO+djjxh2aVr9EZ2sJdSIc1vkzQoTIGjZ6Vhn+5mlxcm8eRdDvEpsgkO0/Zb2xdGeCitYniT3IuGY/JyK9s7TUMiqlCjibMASJc2Z32E7dXOxW5Q0CdN4icwzPbg3OlXDRt92kxsdvLl0lA1RSCbs/gaJMY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767492498; c=relaxed/simple; bh=AcjjjCa7WZR0K1hb1WnjFbGchQTxn9lSBGZoMtQIOOE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FEGyOAvKJzHMumh5iNc94dKMvF0j8T2heswWVYdNcGucaLOxaDC8Aj7nE7yn1d66jNmeuVu7cJW38/F2mTbhl81CfafKU2ds33BmKU4utrFwkrn6lq5wtznOQvZY3ydJ/lxRh/1iaaGO73FbClMzITaVuIvm3C6Tws/taY18kR4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FY6QAkVY; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FY6QAkVY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 72F0BC19424; Sun, 4 Jan 2026 02:08:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1767492497; bh=AcjjjCa7WZR0K1hb1WnjFbGchQTxn9lSBGZoMtQIOOE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FY6QAkVYrJ8WKUiO1Kr0uO2D3wHSGlNQX3WPXhYqSxQOVecn/uL0YvcHLRRhYKafl rB4iFp+vITehHQgYkilR8MA8rhNC9TbHAYkIFjRwebwGIO/OaKjKcUVOVzwurzFiZ+ YPs5NWhzdfvzdOcTGPNb1moS94Lmkg9km/2Kw1iPLIDPlY78cnbwNI1PPPl1YlRwRO 222EcgsZ36EIFmwoz/EkdrernyX0DCS6zGI/fXjRBkX1KPt1PcNAC4dogrSOk6oGNP C5nLU1VKKkJBpFzDiPSPKtZA1VjgrLGYXtUoBdFkRORh42iQPbe5moIApuY1lNUVWN BrGMhSd6fRSBw== From: Chao Yu To: jaegeuk@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Chao Yu Subject: [PATCH 10/14] f2fs: fix to use jiffies based precision for DEFAULT_SCHEDULE_TIMEOUT Date: Sun, 4 Jan 2026 10:07:25 +0800 Message-ID: <20260104020729.1064529-10-chao@kernel.org> X-Mailer: git-send-email 2.52.0.358.g0dd7633a29-goog In-Reply-To: <20260104020729.1064529-1-chao@kernel.org> References: <20260104020729.1064529-1-chao@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Due to timeout parameter in {io,}_schedule_timeout() is based on jiffies unit precision. It will lose precision when using msecs_to_jiffies(x) for conversion. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index cb9e94904c6b..c4d3b37821d6 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -681,8 +681,8 @@ enum { #define DEFAULT_RETRY_IO_COUNT 8 /* maximum retry read IO or flush count */ -/* IO/non-IO congestion wait timeout value, default: 1ms */ -#define DEFAULT_SCHEDULE_TIMEOUT (msecs_to_jiffies(1)) +/* IO/non-IO congestion wait timeout value, default: 1 jiffies */ +#define DEFAULT_SCHEDULE_TIMEOUT 1 /* timeout value injected, default: 1000ms */ #define DEFAULT_FAULT_TIMEOUT (msecs_to_jiffies(1000)) -- 2.49.0