From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 8FEA33EFD15 for ; Mon, 15 Jun 2026 13:08:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781528920; cv=none; b=i4++TTs4TWulQxdLYQgpla+AJlYuZluMjejHHq2eTaM7H133oRXt4nXI5WPLGA0YlOFFzp0W361mCvsEqn10zuYoMqQYLorvA+HGuz9r0jwHd+qnJi2RHjyF5Eu/DVQax6aZe0+As+SROtrRucSE1Lh0nROIyxCYUWqH2rPMkT8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781528920; c=relaxed/simple; bh=Hi4QjqAcEw1wgFkGRMnFSJ2IXK+SQ8nqufKqRhAQXdY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HBCROViXbFsSBliREGmqO0XrrKUhEezO5hxXEE2tV4Jqc1C+WLuyyFq1Aj9xkwsyVKSukG6hdmaFwxGe1Lf01LRLAiScqFF3xvjokdtPRpIREukzFbuNx6zyx7PBNyj0jpkMZvUyxQmCxWWIZxo6kWV6e3K3B50tWWukDgfVH7o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DIlYjuIJ; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DIlYjuIJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 700E11F000E9; Mon, 15 Jun 2026 13:08:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1781528919; bh=M6uLn6HKNb/6qJKD+yHjmrb8H0jz7uHTJGfjPCDkAmk=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=DIlYjuIJeEO23aC3SkqKcE0mLUAIeQoGJ/A495H/sekIuPNjMvyVycXbiWsV1HhBQ 2CgAr1v2+vd7v4JcioveJ+YxU1C/fihnH36FR9kQI3esR+J9LsOrCh+oRSpiKwMOQn AtfwO8P8llV6qgAhaIqcch1aqjK2MtwsVvNqHu2PA9uq7/JKU/eSkjTXoLKn1v1KTF 5HA+rKRMNHvmv1IxuH7r35lpqTvM8ox/3/3UT3f/KYNexqn3uWvXhx071I1XN12tTV ictDaVe1b1OjIkv2ZW/HtL29NrBHdJZM3+0TKv0e/PVW1GZZsZm1zDlCzRwqtrbQ/g xFiV5IKsy1BNw== From: Chao Yu To: jaegeuk@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Chao Yu Subject: [PATCH 6/6] f2fs: remove unneeded f2fs_is_compressed_page() Date: Mon, 15 Jun 2026 21:08:22 +0800 Message-ID: <20260615130822.2576088-6-chao@kernel.org> X-Mailer: git-send-email 2.54.0.1136.gdb2ca164c4-goog In-Reply-To: <20260615130822.2576088-1-chao@kernel.org> References: <20260615130822.2576088-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 We have checked f2fs_is_compressed_page() before f2fs_compress_write_end_io(), so we don't need to check the status again, remove it. Signed-off-by: Chao Yu --- fs/f2fs/compress.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c index aaa0813eabcd..b1209619bb64 100644 --- a/fs/f2fs/compress.c +++ b/fs/f2fs/compress.c @@ -1486,8 +1486,7 @@ void f2fs_compress_write_end_io(struct bio *bio, struct folio *folio) struct page *page = &folio->page; struct f2fs_sb_info *sbi = bio->bi_private; struct compress_io_ctx *cic = folio->private; - enum count_type type = WB_DATA_TYPE(folio, - f2fs_is_compressed_page(folio)); + enum count_type type = WB_DATA_TYPE(folio, true); int i; if (unlikely(bio->bi_status != BLK_STS_OK)) -- 2.49.0