Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 6C384548F1 for ; Mon, 25 Mar 2024 02:24:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711333463; cv=none; b=YVJTYs5ZK7fSzNRljkfUOmjSiUq65TRyezqwrYJ+uNQUKxrcOMEkfBk6XXFHu0h0KaqIRbE4K3UF2szQhroU+NLpVC5bEFui3IDfpz5Rhw7y91UI0iFSxYr7ZEtFpRxCVDXH3BGihrlze0Le1vR50g0cjh7i7z7zNmCsPXmB0/U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711333463; c=relaxed/simple; bh=IBSmgxBhILiCOoeS4nrif5eZJBEK3uN7iOUpcHSOfJQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=B2XTGc9VX3DV0Uti5DLhpaTOvsjzvHzHHJUKmTpXPIknPfKUWLGKVui0STlQ7ouAhn8LtTz9LAAuCDQq0Z+Uz4iz2Qbacb95gxgCtlRIToBpfR5D+9nC7GFKLG0Gy1mzUdgTmfODhbA5m7/Z3AswYvOcZxeElh5oiBc+m2L17/s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=tfntVLlR; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="tfntVLlR" 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=THPNCNoXTMmUWITKS6w+NabN0QY/iVuoXCGrpFYl51k=; b=tfntVLlRYDEuRqsgwAdbPMduub ijI++rhdFQVjZ6YUI73O2SW1iSyUpRoYMg7BlgHnZjLitHv23ii5u2g4b73H/gfY2Xwk3ZC5cscJt EJ0Y1VBBCKk1i0j+X7GMAiD9aYGkwOdCL9pe/ZTnMO36Lkh3GMDRsCvE3RwctxjuZ3CucaOclGGSP GvCiJjTf99t9PtYMuBxWqo0b/0IWa6v4b+cjTrfLeiYbOyr5rL4OCeLMuEU/lZhDnqrkcwcpcWUc0 SF0R2XThjzvvAA8R0hi4NxvwBvThz6PxW/u9tx3osXpasnldkAxp0W8h9i2vuV3vxSH6WMAaJRR8B QrDTaoPg==; Received: from [210.13.83.2] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1roa0a-0000000EePF-2AgR; Mon, 25 Mar 2024 02:24:21 +0000 From: Christoph Hellwig To: Chandan Babu R Cc: "Darrick J. Wong" , Dave Chinner , linux-xfs@vger.kernel.org Subject: [PATCH 01/11] xfs: make XFS_TRANS_LOWMODE match the other XFS_TRANS_ definitions Date: Mon, 25 Mar 2024 10:24:01 +0800 Message-Id: <20240325022411.2045794-2-hch@lst.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240325022411.2045794-1-hch@lst.de> References: <20240325022411.2045794-1-hch@lst.de> Precedence: bulk X-Mailing-List: linux-xfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Commit bb7b1c9c5dd3 ("xfs: tag transactions that contain intent done items") switched the XFS_TRANS_ definitions to be bit based, and using comments above the definitions. As XFS_TRANS_LOWMODE was last and has a big fat comment it was missed. Switch it to the same style. Signed-off-by: Christoph Hellwig Reviewed-by: Darrick J. Wong --- fs/xfs/libxfs/xfs_shared.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/xfs/libxfs/xfs_shared.h b/fs/xfs/libxfs/xfs_shared.h index dfd61fa8332e1a..f35640ad3e7fe4 100644 --- a/fs/xfs/libxfs/xfs_shared.h +++ b/fs/xfs/libxfs/xfs_shared.h @@ -124,7 +124,6 @@ void xfs_log_get_max_trans_res(struct xfs_mount *mp, #define XFS_TRANS_RES_FDBLKS (1u << 6) /* Transaction contains an intent done log item */ #define XFS_TRANS_HAS_INTENT_DONE (1u << 7) - /* * LOWMODE is used by the allocator to activate the lowspace algorithm - when * free space is running low the extent allocator may choose to allocate an @@ -136,7 +135,7 @@ void xfs_log_get_max_trans_res(struct xfs_mount *mp, * for free space from AG 0. If the correct transaction reservations have been * made then this algorithm will eventually find all the space it needs. */ -#define XFS_TRANS_LOWMODE 0x100 /* allocate in low space mode */ +#define XFS_TRANS_LOWMODE (1u << 8) /* * Field values for xfs_trans_mod_sb. -- 2.39.2