xref: /linux/fs/xfs/xfs_iunlink_item.h (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Copyright (c) 2020-2022, Red Hat, Inc.
4  * All Rights Reserved.
5  */
6 #ifndef XFS_IUNLINK_ITEM_H
7 #define XFS_IUNLINK_ITEM_H	1
8 
9 struct xfs_trans;
10 struct xfs_inode;
11 struct xfs_perag;
12 
13 /* in memory log item structure */
14 struct xfs_iunlink_item {
15 	struct xfs_log_item	item;
16 	struct xfs_inode	*ip;
17 	struct xfs_perag	*pag;
18 	xfs_agino_t		next_agino;
19 	xfs_agino_t		old_agino;
20 };
21 
22 extern struct kmem_cache *xfs_iunlink_cache;
23 
24 int xfs_iunlink_log_inode(struct xfs_trans *tp, struct xfs_inode *ip,
25 			struct xfs_perag *pag, xfs_agino_t next_agino);
26 
27 #endif	/* XFS_IUNLINK_ITEM_H */
28