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 C7934C4332F for ; Mon, 28 Nov 2022 09:16:11 +0000 (UTC) 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.95) (envelope-from ) id 1ozaFH-0005S9-E7; Mon, 28 Nov 2022 09:16:11 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1ozaEs-0005QC-CX for linux-f2fs-devel@lists.sourceforge.net; Mon, 28 Nov 2022 09:15:46 +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=VEUVq+kcF0dPE4B8MpU7tMh0mbOxws9Vns+F6we+GaA=; b=RZt/5JgocNZfIyfJrDAwC9SYhR HL8buSMtzByr0rqlPbHoX6y/lDyHGJEx5ozQu5IDJq4KKPlik3/WONzpz400r1wwca3FOZZTMdiK0 bJSY1OY109edOWLj8RYFAxf5s61ByK/9GbjATtHxQzh7iJ9UVGmMMNrijSMiC9rNn/rc=; 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=VEUVq+kcF0dPE4B8MpU7tMh0mbOxws9Vns+F6we+GaA=; b=ADhVWQl6Rq+CmjTZd4xWk8AXdO IpzxrQmaRUJBE1/tGGqlMnHoe5EZ4H+PZ5TLptLgMP2l+kTzViUxWqxv8eemD06MpFYSw62UG74bi 5RWPDVAh/BtcabuYEB9Cunwwg+geSPxsm2fLfYebU4qT//sUtcEcAqJwlCCk0SxJSHZs=; Received: from bombadil.infradead.org ([198.137.202.133]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1ozaEo-00GRQf-Vh for linux-f2fs-devel@lists.sourceforge.net; Mon, 28 Nov 2022 09:15:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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=VEUVq+kcF0dPE4B8MpU7tMh0mbOxws9Vns+F6we+GaA=; b=TVx/rJlgYeL27lDYWvZftBwN5E uIvvO4fhdApNFVVH9a7oyX7FkW2rw7tR6mts0aZLjZ5w2/RM9BtPlYVMZrWi6V+0cilxV5mxjKCLi Ec8hNQA0X0/34FTw0nM9Xckolq97RxmRYuR3p5DtSrvxXy4iKBFROiwI9OYlfTWKyjW15LrCeEOQX V9HdCZbV6+u5c3xJbFFupWfifKOIj0lU3QUkLHxGufG2Yz+vZC0Pp99v2dn0u/TX+5yGzbNK1X/3+ sk+H1cUuco7jwOGQXnzOK1WKnIrmlzwTF09S726QGk1yA/O9EOhMby6Nzto0AM+URqmGhE4EhLlrB v3FraC0Q==; Received: from [2001:4bb8:192:26e7:4739:fc09:43a5:2665] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozaEe-000Ykd-S3; Mon, 28 Nov 2022 09:15:33 +0000 From: Christoph Hellwig To: Jaegeuk Kim , Chao Yu Date: Mon, 28 Nov 2022 10:15:10 +0100 Message-Id: <20221128091523.1242584-3-hch@lst.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221128091523.1242584-1-hch@lst.de> References: <20221128091523.1242584-1-hch@lst.de> MIME-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Headers-End: 1ozaEo-00GRQf-Vh Subject: [f2fs-dev] [PATCH 02/15] f2fs: decouple F2FS_MAP_ from buffer head flags 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: 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 m_flags is never interchanged with the buffer_heads b_flags directly, so use separate codepoints from that. Signed-off-by: Christoph Hellwig --- fs/f2fs/f2fs.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index e6355a5683b75c..db2dc3fa73162b 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -643,13 +643,11 @@ struct extent_tree { }; /* - * This structure is taken from ext4_map_blocks. - * - * Note that, however, f2fs uses NEW and MAPPED flags for f2fs_map_blocks(). + * State of block returned by f2fs_map_blocks. */ -#define F2FS_MAP_NEW (1 << BH_New) -#define F2FS_MAP_MAPPED (1 << BH_Mapped) -#define F2FS_MAP_UNWRITTEN (1 << BH_Unwritten) +#define F2FS_MAP_NEW (1U << 0) +#define F2FS_MAP_MAPPED (1U << 1) +#define F2FS_MAP_UNWRITTEN (1U << 2) #define F2FS_MAP_FLAGS (F2FS_MAP_NEW | F2FS_MAP_MAPPED |\ F2FS_MAP_UNWRITTEN) -- 2.30.2 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel