xref: /linux/fs/xfs/xfs_icreate_item.h (revision cc04a46f11ea046ed53e2c832ae29e4790f7e35f)
1 /*
2  * Copyright (c) 2008-2010, Dave Chinner
3  * All Rights Reserved.
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it would be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write the Free Software Foundation,
16  * Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17  */
18 #ifndef XFS_ICREATE_ITEM_H
19 #define XFS_ICREATE_ITEM_H	1
20 
21 /* in memory log item structure */
22 struct xfs_icreate_item {
23 	struct xfs_log_item	ic_item;
24 	struct xfs_icreate_log	ic_format;
25 };
26 
27 extern kmem_zone_t *xfs_icreate_zone;	/* inode create item zone */
28 
29 void xfs_icreate_log(struct xfs_trans *tp, xfs_agnumber_t agno,
30 			xfs_agblock_t agbno, unsigned int count,
31 			unsigned int inode_size, xfs_agblock_t length,
32 			unsigned int generation);
33 
34 #endif	/* XFS_ICREATE_ITEM_H */
35