Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 2E324C83F1A for ; Tue, 8 Jul 2025 17:04:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Subject:MIME-Version:References:In-Reply-To:Message-ID:Date:To:From:Sender: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=mp3gdfWxxFfW0qMEkXv2mLCCHoN80N3Jgc7KKiiKXiE=; b=Dl6h+deeFuixNEov4RSiNsetvq PUmTmUx08In8DF4o/eh0+eKiMBLB/PnQ4MJ1WYrmX7C8eGjX7mY4ZXbsuq7u3kTXR33C+E5FdeH6+ 90OFIHBUFhvU+z0zRCGENs4WrbM1UpcWnDK8GEG1P0pwKjyGuUA8WLldlBR2qXbWyc+c=; Received: from [127.0.0.1] (helo=sfs-ml-3.v29.lw.sourceforge.com) by sfs-ml-3.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1uZBk1-0005Yh-QH; Tue, 08 Jul 2025 17:04:25 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-3.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1uZBjs-0005W3-Fh for linux-f2fs-devel@lists.sourceforge.net; Tue, 08 Jul 2025 17:04:16 +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=/T5jVJfsnh70fvtfavlFMQCC2lfDoFL03p3xeTrtEWo=; b=b15MKbLRA3HsLgxa6hNpl1cnvg FIwx2YWR521uT6JfizWi6xnvrjHdcfp9d7UU3xNEzbNlno0Q3dbzpUy33KoMzHhpIVnPD4iN4beED rRKIppFNCnt7N/LWNJSzu/BGFMqVkTr6xvyzkhP+6/zEn0KRCW5iGhCK667hQgz27xiE=; 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=/T5jVJfsnh70fvtfavlFMQCC2lfDoFL03p3xeTrtEWo=; b=m5ezGQzpikZq/RmQMdoDJMCppt XsBC8lykssuT2+o4Fnnv5fCcqFO8+Vr1Ghuz6w9mk6Lda5eEJ0BhhHf8stFG88ssqpB2q7WFvv3Lp CDUkmQtJWP4oT6tWKy04LuenN8Qa7P/30Lqmx9l/4I47AEiSv1qE/YagFd7Sgok07+Bw=; Received: from casper.infradead.org ([90.155.50.34]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1uZBjr-0006El-19 for linux-f2fs-devel@lists.sourceforge.net; Tue, 08 Jul 2025 17:04:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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; bh=/T5jVJfsnh70fvtfavlFMQCC2lfDoFL03p3xeTrtEWo=; b=mIQyvxgcAi55KCoejAXqwlGHZa 3+UlOtXVDFnBlC/kHlPYX2yk92jk9h1TmgmqmxMErCaMElitCOV6Q6Qr8LwSVTGx7jFFseYUW9kFw PA/7/InrAQbyuxalcQcot4xbqk0btZ1BvX+gbV4ZvNJ+YBT43IewFCL9tHaCmEbSyZ12JVKtCRqqS CbY+IChdYvxVhxOgNGnHX2Aqr3580JclX2PxSP2/9bVL2GvTQqyc/MYorbUJpf+1NTplw87T+MDqu ROHOgUVoUsLWkktlLasWqwyW9ZUl6vw/RievnvTUmgecEioCYJcej73KwskZTCwpaXG40aHSPawaB PPP2ofKw==; Received: from willy by casper.infradead.org with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1uZBjf-00000000T4i-2SwI; Tue, 08 Jul 2025 17:04:03 +0000 From: "Matthew Wilcox (Oracle)" To: Jaegeuk Kim , Chao Yu Date: Tue, 8 Jul 2025 18:03:12 +0100 Message-ID: <20250708170359.111653-16-willy@infradead.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250708170359.111653-1-willy@infradead.org> References: <20250708170359.111653-1-willy@infradead.org> MIME-Version: 1.0 X-Headers-End: 1uZBjr-0006El-19 Subject: [f2fs-dev] [PATCH 15/60] f2fs: Pass a folio to set_mark() 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: "Matthew Wilcox \(Oracle\)" , 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 All callers have a folio so pass it in. Removes a call to compound_head(). Signed-off-by: Matthew Wilcox (Oracle) --- fs/f2fs/node.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/f2fs/node.h b/fs/f2fs/node.h index 7e7578a547ad..8d7d7405de9b 100644 --- a/fs/f2fs/node.h +++ b/fs/f2fs/node.h @@ -418,9 +418,9 @@ static inline void set_cold_node(struct page *page, bool is_dir) rn->footer.flag = cpu_to_le32(flag); } -static inline void set_mark(struct page *page, int mark, int type) +static inline void set_mark(struct folio *folio, int mark, int type) { - struct f2fs_node *rn = F2FS_NODE(page); + struct f2fs_node *rn = F2FS_NODE(&folio->page); unsigned int flag = le32_to_cpu(rn->footer.flag); if (mark) flag |= BIT(type); @@ -429,8 +429,8 @@ static inline void set_mark(struct page *page, int mark, int type) rn->footer.flag = cpu_to_le32(flag); #ifdef CONFIG_F2FS_CHECK_FS - f2fs_inode_chksum_set(F2FS_P_SB(page), page); + f2fs_inode_chksum_set(F2FS_F_SB(folio), &folio->page); #endif } -#define set_dentry_mark(folio, mark) set_mark(&folio->page, mark, DENT_BIT_SHIFT) -#define set_fsync_mark(folio, mark) set_mark(&folio->page, mark, FSYNC_BIT_SHIFT) +#define set_dentry_mark(folio, mark) set_mark(folio, mark, DENT_BIT_SHIFT) +#define set_fsync_mark(folio, mark) set_mark(folio, mark, FSYNC_BIT_SHIFT) -- 2.47.2 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel