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 0CCF82CCC5 for ; Tue, 15 Jul 2025 12:26:17 +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=1752582378; cv=none; b=rOni2Ekw1X5gszw5hDi8Qqj023OAchv5dQpNh2gc2TnFVLQTGxsP6SzFTDPHhAqtlVqBORgegWbQg76hDT9LtlXgO0Ns/LjdcbuslNGrcsX+oM9VcCUd/AXyw0bH8HJlP/Qu7nWE2/88XG9XmqW+q8nASk32Tw5uilLMjZEfRI8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752582378; c=relaxed/simple; bh=xGpeDG2GgA3QHcQ9Y5qeQi7HS0OoR9zxY2heqJdpLv4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LL9BsHpADQkU1qWbwrswg9bXQaB8Q6uRU3fEqcQ6rmqG7LLIYItUokoLHqqE3nGOZqRRsBD3pE/Dy/7qmDIE2dAJx/6Kdfl9XuXnZgeGP/tzLplSBLXtVP90/JmQjp4mad41YIjrMgeWS8KJIEJU2AFd0WL4GDtR4wTbgJro3YI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (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=OZUIeZxd; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (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="OZUIeZxd" 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=BMxmOhDYDk/Lt3txN5Vtr/5vZPkntRnEgphYmtuqONQ=; b=OZUIeZxdNK7h22LG0Wk0E748UA Gr7vCFELFbuU7bS0zwxOiq/SYT/UaAOV6MuYdJQv581G3FevJGzW6goGPaIwXiW7soevcO1aVfaYU J+VIzwajMes6kzbufQ2Z9NYzKDR/amKNr5hhEQlsKvFufHC0kQoJGieY4qHmwF9Yb0wwEOYEZv6jC JKEP3y/ck/qYW972OMcpSxCoGwf6fZJ3FQTK5EJ1Shm0/TztO8PTAjbSvLKM844izCalmfIeCLbww jJBQHI2ELJLTKf8qOBsK+0n/TyBLNYmh01A9xB9qCZCYno5oGdhvyOVN2fc9Zc6tnSgm/9CJbSDDM WZFH6lVw==; Received: from 2a02-8389-2341-5b80-d601-7564-c2e0-491c.cable.dynamic.v6.surfer.at ([2a02:8389:2341:5b80:d601:7564:c2e0:491c] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.98.2 #2 (Red Hat Linux)) id 1ubejg-0000000541C-0ltW; Tue, 15 Jul 2025 12:26:16 +0000 From: Christoph Hellwig To: Carlos Maiolino Cc: linux-xfs@vger.kernel.org Subject: [PATCH 8/8] xfs: remove the xlog_ticket_t typedef Date: Tue, 15 Jul 2025 14:25:41 +0200 Message-ID: <20250715122544.1943403-9-hch@lst.de> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250715122544.1943403-1-hch@lst.de> References: <20250715122544.1943403-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 Almost no users of the typedef left, kill it and switch the remaining users to use the underlying struct. Signed-off-by: Christoph Hellwig --- fs/xfs/xfs_log.c | 6 +++--- fs/xfs/xfs_log_priv.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c index 793468b4d30d..bc3297da2143 100644 --- a/fs/xfs/xfs_log.c +++ b/fs/xfs/xfs_log.c @@ -3092,16 +3092,16 @@ xfs_log_force_seq( */ void xfs_log_ticket_put( - xlog_ticket_t *ticket) + struct xlog_ticket *ticket) { ASSERT(atomic_read(&ticket->t_ref) > 0); if (atomic_dec_and_test(&ticket->t_ref)) kmem_cache_free(xfs_log_ticket_cache, ticket); } -xlog_ticket_t * +struct xlog_ticket * xfs_log_ticket_get( - xlog_ticket_t *ticket) + struct xlog_ticket *ticket) { ASSERT(atomic_read(&ticket->t_ref) > 0); atomic_inc(&ticket->t_ref); diff --git a/fs/xfs/xfs_log_priv.h b/fs/xfs/xfs_log_priv.h index 39a102cc1b43..a9a7a271c15b 100644 --- a/fs/xfs/xfs_log_priv.h +++ b/fs/xfs/xfs_log_priv.h @@ -144,7 +144,7 @@ enum xlog_iclog_state { #define XLOG_COVER_OPS 5 -typedef struct xlog_ticket { +struct xlog_ticket { struct list_head t_queue; /* reserve/write queue */ struct task_struct *t_task; /* task that owns this ticket */ xlog_tid_t t_tid; /* transaction identifier */ @@ -155,7 +155,7 @@ typedef struct xlog_ticket { char t_cnt; /* current unit count */ uint8_t t_flags; /* properties of reservation */ int t_iclog_hdrs; /* iclog hdrs in t_curr_res */ -} xlog_ticket_t; +}; /* * - A log record header is 512 bytes. There is plenty of room to grow the -- 2.47.2