Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp325499lqh; Fri, 31 May 2024 02:31:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVac/j1dwXqmGi+rr8+XBYea95YWLeY1DHnAAsheAvEXePsGgzjAGbnv94Lfq1TG6LwC3xnJD1UXlXm8u4DqYnX48LMt7lSQwFiW3y+ng== X-Google-Smtp-Source: AGHT+IEpdb+DxqdELMCYP3JHY+Dr32P7IbbGg7rz+NGbO4iGhyb76E/XLFlQfV0Y551dQ1Achk2P X-Received: by 2002:a05:6358:9044:b0:199:347f:e8c5 with SMTP id e5c5f4694b2df-19b492d58a9mr182494855d.28.1717147883033; Fri, 31 May 2024 02:31:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717147882; cv=pass; d=google.com; s=arc-20160816; b=gKJnSNvv4xtRxN3lO+vBHLC7CUe9ESQcM2orAqQbWK3TrljK97PgLuwfcVl2oHjgMv xw4NVqbxdS3THj5cMszqbffN23vX3OPnm1tIBzrL222ZXCl79AyOcEGxj0CNlDCJ8+14 /LUduyu/4g/MctiR6dgVHLLRk9df+s7t/S9qj9oOf72Q7DGM4XNVNrtYWsfspjZ3/FnL /WPBEBmLzqUz5YTcs/6GyVbQaXLRLwLISw0FOYnU8xOydjXOkXkNNnkuhJ096bGth+MR CKXDoK6kEMXIR4rEe8yKl2KvQKXJPL2u/VhX2KH00oA4whz/DDEb5tqfOpq8TEOKhJlF wzEQ== 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 :message-id:date:subject:cc:to:from; bh=QQD9VvHsaVMO5naIyE0H9m9upvyuXItIb7TS48jOWA8=; fh=JkrfyujbIDmycozXR7ZDiVuf6xBFur6C1+1NEIITJEI=; b=BVUcUc6SO9n3srnIg1cEImm3EvTC5YDhRIwb5checAYv0+4GXOvrwPDSBPLRznCQI1 E/ZKKZpb96+RM9/MlaeV5/qmkFOZ4ACnM8x4g9PkTOukzwv3ozRu6otMKVyOTd+OrnBZ Zi8bIukYasnH/DR2qH5jy5ki5V1YMzHQVF4NJJKQDHqxy3NWxpO1Yg9gpiKVvxZzIBOK RRMWBhCHhbz1pHaMSDFpaLeBVuAxnZYeR9QVTJSSUCh5D3g4vdsX/eC2QY+u2oWQZRYN FrAvx/yv7Rt4eBooxBZtLc86y+fqjb2kRaYdCkrpFrfFbkYQ5n0UdCfRmBen0xEO2hMc 5NZA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=unisoc.com); spf=pass (google.com: domain of linux-kernel+bounces-196554-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196554-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c359e07285si1219547a12.370.2024.05.31.02.31.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 02:31:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196554-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; arc=pass (i=1 spf=pass spfdomain=unisoc.com); spf=pass (google.com: domain of linux-kernel+bounces-196554-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196554-linux.lists.archive=gmail.com@vger.kernel.org" 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 69F84B29A5B for ; Fri, 31 May 2024 09:12:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE0F778C90; Fri, 31 May 2024 09:11:49 +0000 (UTC) Received: from SHSQR01.spreadtrum.com (unknown [222.66.158.135]) (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 00524155750 for ; Fri, 31 May 2024 09:11:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=222.66.158.135 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717146709; cv=none; b=bpgmwvBgcxvnU+Mvrk/4dz0T1aOKC20tCp7EUL7KnQHuxIGDypzMoz3k/KvaIy0nwyzfX+IQbgDiWr/xdM/pWprM7gbXe939kUg8en8NXcise2haeU/PABx5AS5Qr8eF7jeqO7aq9f8j4r3tBQi5GEMDec+hIe/P/eeA1ViTQys= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717146709; c=relaxed/simple; bh=qHJYZA6a5q1reu3d2mgSmNoW5K8sph6cAVm6974js/E=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=CDB4z9/oIVBQL+g8irkZr8l1JWKSbGXcgSWwVm1EcBc6l6l5/l1HG8P7+JN87Qvj2kzpuIUgdxmnZ/GhkbpZ2YwNXudh26DMZ1e7sXnDzI/jAcOg6UHwHJA9rmTqx44d+wRjBWjzu5k4+XPVCT4ebF/SXzEdpM6vzHqRKHP73Go= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=unisoc.com; spf=pass smtp.mailfrom=unisoc.com; arc=none smtp.client-ip=222.66.158.135 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=unisoc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=unisoc.com Received: from dlp.unisoc.com ([10.29.3.86]) by SHSQR01.spreadtrum.com with ESMTP id 44V9B080041893; Fri, 31 May 2024 17:11:00 +0800 (+08) (envelope-from Zhiguo.Niu@unisoc.com) Received: from SHDLP.spreadtrum.com (bjmbx02.spreadtrum.com [10.0.64.8]) by dlp.unisoc.com (SkyGuard) with ESMTPS id 4VrHLj2JJdz2QN2yZ; Fri, 31 May 2024 17:07:09 +0800 (CST) Received: from bj08434pcu.spreadtrum.com (10.0.73.87) by BJMBX02.spreadtrum.com (10.0.64.8) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Fri, 31 May 2024 17:10:57 +0800 From: Zhiguo Niu To: , CC: , , , , Subject: [PATCH] f2fs: use new ioprio Macro to get ckpt thread ioprio data Date: Fri, 31 May 2024 17:10:45 +0800 Message-ID: <1717146645-18829-1-git-send-email-zhiguo.niu@unisoc.com> X-Mailer: git-send-email 1.9.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-ClientProxiedBy: SHCAS03.spreadtrum.com (10.0.1.207) To BJMBX02.spreadtrum.com (10.0.64.8) X-MAIL:SHSQR01.spreadtrum.com 44V9B080041893 Use new Macro IOPRIO_PRIO_LEVEL to get ckpt thread ioprio data(level), it is more accurate and consisten with the way setting ckpt thread ioprio(IOPRIO_PRIO_VALUE(class, data)). Signed-off-by: Zhiguo Niu --- fs/f2fs/sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c index 72676c5..55d46da 100644 --- a/fs/f2fs/sysfs.c +++ b/fs/f2fs/sysfs.c @@ -340,7 +340,7 @@ static ssize_t f2fs_sbi_show(struct f2fs_attr *a, if (!strcmp(a->attr.name, "ckpt_thread_ioprio")) { struct ckpt_req_control *cprc = &sbi->cprc_info; int class = IOPRIO_PRIO_CLASS(cprc->ckpt_thread_ioprio); - int data = IOPRIO_PRIO_DATA(cprc->ckpt_thread_ioprio); + int data = IOPRIO_PRIO_LEVEL(cprc->ckpt_thread_ioprio); if (class != IOPRIO_CLASS_RT && class != IOPRIO_CLASS_BE) return -EINVAL; -- 1.9.1