From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1635C433EF for ; Fri, 10 Sep 2021 00:16:45 +0000 (UTC) Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C55FA6115A for ; Fri, 10 Sep 2021 00:16:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C55FA6115A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.sourceforge.net Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1mOUDl-0005xY-Gc; Fri, 10 Sep 2021 00:16:45 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOUDj-0005xB-7l for linux-f2fs-devel@lists.sourceforge.net; Fri, 10 Sep 2021 00:16:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=XzMEQS0Mh8zylKn8lOPsM0xbPejTYmofSIzZ7y25NpA=; b=KJ8HvtqMpz3uzSfvEwd4qay0/l opyLBRfuEspLa/KW7B4oCY6HVqPABLBsVdQWIAcyoMPaggjHFvQc4tEzQ8bHSXCJE9DXey0GhIKoo 8KUB2KXHs+r8o63xpkwtJjxVZ3B0bKk8P6rOPBXMz9cBN5Spf+sImMmbuAODqnc2qGwU=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=XzMEQS0Mh8zylKn8lOPsM0xbPejTYmofSIzZ7y25NpA=; b=jO6ogPW/LryLhSbwg/33Ay2qxg kKXF5IKeqXeU+fwypES6/2s28KorbcepiG8vXFh11ayQ2hxuRC3hIzVEZuRYhTiY+ECF191dV68er j2qNLUgWstQEOxeXSjhyM2rp91l9MNrS97lJS2Jw2GKdGwoof4c9Zysdi1xS28/0zt3w=; Received: from mail.kernel.org ([198.145.29.99]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) id 1mOUDi-005Rvc-Oh for linux-f2fs-devel@lists.sourceforge.net; Fri, 10 Sep 2021 00:16:43 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1E243611CE; Fri, 10 Sep 2021 00:16:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631232997; bh=M/ipGsOWicoW0FW6yQiyiamoAAv1ZnInQexwOjlw6Bg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lDk0hx4r6tVMT+mrFCHhQvzw9gOGeNN1yvtjXjxSAlQv+VntJZOJhiDgMXT+1wgUw ABDCIz9GtF7IWTsPKrutsxPa2+bUDhuQ/m6kAlnk7rA58thYxUG61V4Es0g3sPCe7Z TnNIN5KnpHSLqsy7fEfUbm1y7yfhwe+Nb4Z6LMnzCoufFSrdST/6g0F4leyu7uC8jR XQ2oiSR0GE+9W9wC/HroLMPug2dC3pbzkEeXb+uCX92cAtqSnrSfDUx18W7I/k6M4h noJbOFR0XtUMFPpboWIgQLJnlbFw9SJW6jV+4JRmwFOjKpzC7xFwWBw9acYOgrdwTH gHs+3R9wlEvrQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Date: Thu, 9 Sep 2021 20:14:47 -0400 Message-Id: <20210910001558.173296-28-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210910001558.173296-1-sashal@kernel.org> References: <20210910001558.173296-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-Headers-End: 1mOUDi-005Rvc-Oh Subject: [f2fs-dev] [PATCH AUTOSEL 5.14 28/99] f2fs: fix min_seq_blocks can not make sense in some scenes. X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sasha Levin , Jaegeuk Kim , linux-f2fs-devel@lists.sourceforge.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net From: Laibin Qiu [ Upstream commit dc675a97129c4d9d5af55a3d7f23d7e092b8e032 ] F2FS have dirty page count control for batched sequential write in writepages, and get the value of min_seq_blocks by blocks_per_seg * segs_per_sec(segs_per_sec defaults to 1). But in some scenes we set a lager section size, Min_seq_blocks will become too large to achieve the expected effect(eg. 4thread sequential write, the number of merge requests will be reduced). Signed-off-by: Laibin Qiu Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/segment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 15cc89eef28d..2e543c7c1bc3 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -5159,7 +5159,7 @@ int f2fs_build_segment_manager(struct f2fs_sb_info *sbi) sm_info->ipu_policy = 1 << F2FS_IPU_FSYNC; sm_info->min_ipu_util = DEF_MIN_IPU_UTIL; sm_info->min_fsync_blocks = DEF_MIN_FSYNC_BLOCKS; - sm_info->min_seq_blocks = sbi->blocks_per_seg * sbi->segs_per_sec; + sm_info->min_seq_blocks = sbi->blocks_per_seg; sm_info->min_hot_blocks = DEF_MIN_HOT_BLOCKS; sm_info->min_ssr_sections = reserved_sections(sbi); -- 2.30.2 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel