Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp3658860pxb; Sun, 26 Sep 2021 23:08:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRj0Uyj3x8AYkmjB0u7zasaVR8+gfXZjCd3LqgVKIOgAqQQ5q1WPcaIXjMKgM2Hui6CFu8 X-Received: by 2002:a63:4f0f:: with SMTP id d15mr15103014pgb.464.1632722901236; Sun, 26 Sep 2021 23:08:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632722901; cv=none; d=google.com; s=arc-20160816; b=xb5Z2RWbkmA+N6iDvyu4iSkIh2XelWnWR84JEDXopgUA7rAg007s9Sjekr+dAQg1LC r22FChmJk4NfNy1UNih3pSjFpIKl6/Y8wca/l2VEo/i34GpWA6ejVc9knk1LjnVmfXRF 7nJChqMf6CbNY8zc8U+cjXxWtLSzm1gl/ny0LI77r9XGfGwKaBr5EuxEk65REli2GcSn thV7+z3X+b/ctUbd6QkmYT6Omp4/wCw/QIhez5RcwavWQjAUKG7/dibSUYJSfk826v5e DHaz7Nz7pE3LRAV7/tSodFEZzoIGA9YqBP35pWRkZ1bD7Y7+n+jdli3/wFvhTeIMoZYT 0E5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:date:message-id:cc:to:from:sender :reply-to:subject:mime-version:dkim-signature:dkim-filter; bh=arZ5Z5z9yCYJLYv6BmzcDUc6j2jcFI4JwqTbvTfJDHc=; b=HwyOCZ18Ly3u1hC425Bpc7Qrh5O6I+VBBAFF3oziHmWj6a2pcYNoOAXtf9SGLRUZ4C bWs21Fpknn7bfqIWQcSJERehhAD8GwTjKHoI/yJB0xO4UBkHU5O5Fh1TOfka4+gaoyki 6Izb1qXCohK0k7RtiB7P4d6Ddurh/5wseicjS1sKjK+1tssofNIGjlfP0Ofrd+/Cwi0T aj9WoB4u0bzBhRUuJq+opWmyoZBJJVU596mj5ZoLDCd/aDu8K1gK5oprZjkHP94ZWiSt NoAR/Kh7CyuHhwGZZg/sU56eAJSXoHrD8RSVl1BXpLLK/X1EFGoa9W/rHEiGUgplASQF qn2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=DLK2WntU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q7si20284997pgv.236.2021.09.26.23.08.08; Sun, 26 Sep 2021 23:08:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=DLK2WntU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232959AbhI0GIb (ORCPT + 99 others); Mon, 27 Sep 2021 02:08:31 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:18559 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232924AbhI0GIb (ORCPT ); Mon, 27 Sep 2021 02:08:31 -0400 Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20210927060651epoutp02af262d5ec5ad44328bbe47b523e6bc7f~omL80BEn82358123581epoutp02J for ; Mon, 27 Sep 2021 06:06:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20210927060651epoutp02af262d5ec5ad44328bbe47b523e6bc7f~omL80BEn82358123581epoutp02J DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1632722811; bh=arZ5Z5z9yCYJLYv6BmzcDUc6j2jcFI4JwqTbvTfJDHc=; h=Subject:Reply-To:From:To:CC:Date:References:From; b=DLK2WntUwoXO9xRj+QvJ00m7Fh8ZuPujv0VktjGPnelUKm2f7mS8oIqxZFhRkF6/O 0UKwhilrdisYQDJLbdHlOBtGwJWK1sLGMbKAB/dNPrEtJAXtwYnBlCUl2ilUpr4ouz CEhWFR9y9B9ITcI4eJeE8AENDsP6882/XVIz7lrk= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20210927060651epcas2p3c2d70f0365b5e788ec4076101340e276~omL8SLJl32960229602epcas2p3E; Mon, 27 Sep 2021 06:06:51 +0000 (GMT) Received: from epsmges2p1.samsung.com (unknown [182.195.40.187]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4HHsbZ0g8Jz4x9QY; Mon, 27 Sep 2021 06:06:50 +0000 (GMT) X-AuditID: b6c32a45-4c1ff700000025f5-b2-61515f791519 Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p1.samsung.com (Symantec Messaging Gateway) with SMTP id EC.6E.09717.97F51516; Mon, 27 Sep 2021 15:06:49 +0900 (KST) Mime-Version: 1.0 Subject: [PATCH] f2fs: fix to use WHINT_MODE Reply-To: keosung.park@samsung.com Sender: Keoseong Park From: Keoseong Park To: "jaegeuk@kernel.org" , "chao@kernel.org" , "linux-f2fs-devel@lists.sourceforge.net" , "linux-kernel@vger.kernel.org" CC: Jinyoung CHOI , Daejun Park , Sung-Jun Park X-Priority: 3 X-Content-Kind-Code: NORMAL X-CPGS-Detection: blocking_info_exchange X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20210927060648epcms2p4fb042fab3a79cdffba4bf995e1270831@epcms2p4> Date: Mon, 27 Sep 2021 15:06:48 +0900 X-CMS-MailID: 20210927060648epcms2p4fb042fab3a79cdffba4bf995e1270831 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL X-CPGSPASS: Y X-CPGSPASS: Y CMS-TYPE: 102P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpmk+LIzCtJLcpLzFFi42LZdljTTLcyPjDR4P53LovTU88yWbw8pGmx 6kG4RW//VjaLJ+tnMVtcWuRucXnXHDaLzulrWBw4PDat6mTz2L3gM5NH35ZVjB6fN8kFsETl 2GSkJqakFimk5iXnp2TmpdsqeQfHO8ebmhkY6hpaWpgrKeQl5qbaKrn4BOi6ZeYA3aCkUJaY UwoUCkgsLlbSt7Mpyi8tSVXIyC8usVVKLUjJKTA0LNArTswtLs1L10vOz7UyNDAwMgWqTMjJ +P3lIWvBS/aKjVMuszYwHmfrYuTkkBAwkbjy+jQ7iC0ksINR4tvuwi5GDg5eAUGJvzuEQcLC AjoSK/bvZIIoUZLoWriVGSJuILFu+h4wm01AT2LK7zuMILaIwCtGiTOrRbsYuTiYBZoYJW6t 7YXaxSsxo/0pC4QtLbF9+VZGCFtD4seyXmYIW1Ti5uq37DD2+2PzoWpEJFrvnYWqEZR48HM3 I8idEgKSEmcOu0KEyyUWnl/GDrJXQqCDUeL19wVQc/QlrnVsBNvLK+Ar8eTeWzCbRUBV4vzS FqgaF4nvzRvBnmQWkJfY/nYOM8h8ZgFNifW79CFWKUscucUC80nDxt/s6GxmAT6JjsN/4eI7 5j1hgrDVJB4t2MIKYctIXJxzjnkCo9IsREDPQrJ3FsLeBYzMqxjFUguKc9NTi40KDJGjdhMj ODVque5gnPz2g94hRiYOxkOMEhzMSiK8wSz+iUK8KYmVValF+fFFpTmpxYcYTYE+nsgsJZqc D0zOeSXxhqZGZmYGlqYWpmZGFkrivHP/OSUKCaQnlqRmp6YWpBbB9DFxcEo1MGU8F400kGAp +vP3u++d58qrjqvNs4w9+nvx5qC9JWah9990SZ/j2voofsrrC7+meXO9tTAtUUwVSNAxs7sk X1FkUxZztGOuTHKOgszuhatLTjVmii/e+2/WwVOr1rQfad8ktOKoloXp653v3Yo//mq7Pd+9 Pk9c1Xfj+m87bBge9h17+LBXzmlFb+PT1avb97YHRPZuOx0Ut9ZHPdfOa/ap2XO2aS85Fae7 P8vglOiU6fyfN9VPWNg9mzOY+47zq47Ljt8KvizilHBSdFh/rOleqahNuvUNXe4Xt6/WZrpV PUk+8EudPX0JR8myV6UXIkSDjngKRJi/lSpZa2oYeFRnBaeQaXXkZpEPube00pRYijMSDbWY i4oTAW/0q4AWBAAA DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20210927060648epcms2p4fb042fab3a79cdffba4bf995e1270831 References: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since active_logs can be set to 2 or 4 or NR_CURSEG_PERSIST_TYPE(6), it cannot be set to NR_CURSEG_TYPE(8). That is, whint_mode is always off. Therefore, the condition is changed from NR_CURSEG_TYPE to NR_CURSEG_PERSIST_TYPE. Cc: Chao Yu Signed-off-by: Keoseong Park --- fs/f2fs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 78ebc306ee2b..86eeb019cc52 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -1292,7 +1292,7 @@ static int parse_options(struct super_block *sb, char *options, bool is_remount) /* Not pass down write hints if the number of active logs is lesser * than NR_CURSEG_PERSIST_TYPE. */ - if (F2FS_OPTION(sbi).active_logs != NR_CURSEG_TYPE) + if (F2FS_OPTION(sbi).active_logs != NR_CURSEG_PERSIST_TYPE) F2FS_OPTION(sbi).whint_mode = WHINT_MODE_OFF; if (f2fs_sb_has_readonly(sbi) && !f2fs_readonly(sbi->sb)) { -- 2.17.1