xfs_inode.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493
  1. /*
  2. * Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify it
  5. * under the terms of version 2 of the GNU General Public License as
  6. * published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it would be useful, but
  9. * WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. *
  12. * Further, this software is distributed without any warranty that it is
  13. * free of the rightful claim of any third person regarding infringement
  14. * or the like. Any license provided herein, whether implied or
  15. * otherwise, applies only to this software file. Patent licenses, if
  16. * any, provided herein do not apply to combinations of this program with
  17. * other software, or any other product whatsoever.
  18. *
  19. * You should have received a copy of the GNU General Public License along
  20. * with this program; if not, write the Free Software Foundation, Inc., 59
  21. * Temple Place - Suite 330, Boston MA 02111-1307, USA.
  22. *
  23. * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
  24. * Mountain View, CA 94043, or:
  25. *
  26. * http://www.sgi.com
  27. *
  28. * For further information regarding this notice, see:
  29. *
  30. * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
  31. */
  32. #ifndef __XFS_INODE_H__
  33. #define __XFS_INODE_H__
  34. /*
  35. * Fork identifiers.
  36. */
  37. #define XFS_DATA_FORK 0
  38. #define XFS_ATTR_FORK 1
  39. /*
  40. * File incore extent information, present for each of data & attr forks.
  41. */
  42. #define XFS_INLINE_EXTS 2
  43. #define XFS_INLINE_DATA 32
  44. typedef struct xfs_ifork {
  45. int if_bytes; /* bytes in if_u1 */
  46. int if_real_bytes; /* bytes allocated in if_u1 */
  47. xfs_bmbt_block_t *if_broot; /* file's incore btree root */
  48. short if_broot_bytes; /* bytes allocated for root */
  49. unsigned char if_flags; /* per-fork flags */
  50. unsigned char if_ext_max; /* max # of extent records */
  51. xfs_extnum_t if_lastex; /* last if_extents used */
  52. union {
  53. xfs_bmbt_rec_t *if_extents; /* linear map file exts */
  54. char *if_data; /* inline file data */
  55. } if_u1;
  56. union {
  57. xfs_bmbt_rec_t if_inline_ext[XFS_INLINE_EXTS];
  58. /* very small file extents */
  59. char if_inline_data[XFS_INLINE_DATA];
  60. /* very small file data */
  61. xfs_dev_t if_rdev; /* dev number if special */
  62. uuid_t if_uuid; /* mount point value */
  63. } if_u2;
  64. } xfs_ifork_t;
  65. /*
  66. * Flags for xfs_ichgtime().
  67. */
  68. #define XFS_ICHGTIME_MOD 0x1 /* data fork modification timestamp */
  69. #define XFS_ICHGTIME_ACC 0x2 /* data fork access timestamp */
  70. #define XFS_ICHGTIME_CHG 0x4 /* inode field change timestamp */
  71. /*
  72. * Per-fork incore inode flags.
  73. */
  74. #define XFS_IFINLINE 0x0001 /* Inline data is read in */
  75. #define XFS_IFEXTENTS 0x0002 /* All extent pointers are read in */
  76. #define XFS_IFBROOT 0x0004 /* i_broot points to the bmap b-tree root */
  77. /*
  78. * Flags for xfs_imap() and xfs_dilocate().
  79. */
  80. #define XFS_IMAP_LOOKUP 0x1
  81. /*
  82. * Maximum number of extent pointers in if_u1.if_extents.
  83. */
  84. #define XFS_MAX_INCORE_EXTENTS 32768
  85. #ifdef __KERNEL__
  86. struct bhv_desc;
  87. struct cred;
  88. struct ktrace;
  89. struct vnode;
  90. struct xfs_buf;
  91. struct xfs_bmap_free;
  92. struct xfs_bmbt_irec;
  93. struct xfs_bmbt_block;
  94. struct xfs_inode;
  95. struct xfs_inode_log_item;
  96. struct xfs_mount;
  97. struct xfs_trans;
  98. struct xfs_dquot;
  99. #if defined(XFS_ILOCK_TRACE)
  100. #define XFS_ILOCK_KTRACE_SIZE 32
  101. extern ktrace_t *xfs_ilock_trace_buf;
  102. extern void xfs_ilock_trace(struct xfs_inode *, int, unsigned int, inst_t *);
  103. #else
  104. #define xfs_ilock_trace(i,n,f,ra)
  105. #endif
  106. /*
  107. * This structure is used to communicate which extents of a file
  108. * were holes when a write started from xfs_write_file() to
  109. * xfs_strat_read(). This is necessary so that we can know which
  110. * blocks need to be zeroed when they are read in in xfs_strat_read()
  111. * if they weren\'t allocated when the buffer given to xfs_strat_read()
  112. * was mapped.
  113. *
  114. * We keep a list of these attached to the inode. The list is
  115. * protected by the inode lock and the fact that the io lock is
  116. * held exclusively by writers.
  117. */
  118. typedef struct xfs_gap {
  119. struct xfs_gap *xg_next;
  120. xfs_fileoff_t xg_offset_fsb;
  121. xfs_extlen_t xg_count_fsb;
  122. } xfs_gap_t;
  123. typedef struct dm_attrs_s {
  124. __uint32_t da_dmevmask; /* DMIG event mask */
  125. __uint16_t da_dmstate; /* DMIG state info */
  126. __uint16_t da_pad; /* DMIG extra padding */
  127. } dm_attrs_t;
  128. typedef struct xfs_iocore {
  129. void *io_obj; /* pointer to container
  130. * inode or dcxvn structure */
  131. struct xfs_mount *io_mount; /* fs mount struct ptr */
  132. #ifdef DEBUG
  133. mrlock_t *io_lock; /* inode IO lock */
  134. mrlock_t *io_iolock; /* inode IO lock */
  135. #endif
  136. /* I/O state */
  137. xfs_fsize_t io_new_size; /* sz when write completes */
  138. /* Miscellaneous state. */
  139. unsigned int io_flags; /* IO related flags */
  140. /* DMAPI state */
  141. dm_attrs_t io_dmattrs;
  142. } xfs_iocore_t;
  143. #define io_dmevmask io_dmattrs.da_dmevmask
  144. #define io_dmstate io_dmattrs.da_dmstate
  145. #define XFS_IO_INODE(io) ((xfs_inode_t *) ((io)->io_obj))
  146. #define XFS_IO_DCXVN(io) ((dcxvn_t *) ((io)->io_obj))
  147. /*
  148. * Flags in the flags field
  149. */
  150. #define XFS_IOCORE_RT 0x1
  151. /*
  152. * xfs_iocore prototypes
  153. */
  154. extern void xfs_iocore_inode_init(struct xfs_inode *);
  155. extern void xfs_iocore_inode_reinit(struct xfs_inode *);
  156. /*
  157. * This is the type used in the xfs inode hash table.
  158. * An array of these is allocated for each mounted
  159. * file system to hash the inodes for that file system.
  160. */
  161. typedef struct xfs_ihash {
  162. struct xfs_inode *ih_next;
  163. rwlock_t ih_lock;
  164. uint ih_version;
  165. } xfs_ihash_t;
  166. #define XFS_IHASH(mp,ino) ((mp)->m_ihash + (((uint)(ino)) % (mp)->m_ihsize))
  167. /*
  168. * This is the xfs inode cluster hash. This hash is used by xfs_iflush to
  169. * find inodes that share a cluster and can be flushed to disk at the same
  170. * time.
  171. */
  172. typedef struct xfs_chashlist {
  173. struct xfs_chashlist *chl_next;
  174. struct xfs_inode *chl_ip;
  175. xfs_daddr_t chl_blkno; /* starting block number of
  176. * the cluster */
  177. struct xfs_buf *chl_buf; /* the inode buffer */
  178. } xfs_chashlist_t;
  179. typedef struct xfs_chash {
  180. xfs_chashlist_t *ch_list;
  181. lock_t ch_lock;
  182. } xfs_chash_t;
  183. #define XFS_CHASH(mp,blk) ((mp)->m_chash + (((uint)blk) % (mp)->m_chsize))
  184. /*
  185. * This is the xfs in-core inode structure.
  186. * Most of the on-disk inode is embedded in the i_d field.
  187. *
  188. * The extent pointers/inline file space, however, are managed
  189. * separately. The memory for this information is pointed to by
  190. * the if_u1 unions depending on the type of the data.
  191. * This is used to linearize the array of extents for fast in-core
  192. * access. This is used until the file's number of extents
  193. * surpasses XFS_MAX_INCORE_EXTENTS, at which point all extent pointers
  194. * are accessed through the buffer cache.
  195. *
  196. * Other state kept in the in-core inode is used for identification,
  197. * locking, transactional updating, etc of the inode.
  198. *
  199. * Generally, we do not want to hold the i_rlock while holding the
  200. * i_ilock. Hierarchy is i_iolock followed by i_rlock.
  201. *
  202. * xfs_iptr_t contains all the inode fields upto and including the
  203. * i_mnext and i_mprev fields, it is used as a marker in the inode
  204. * chain off the mount structure by xfs_sync calls.
  205. */
  206. typedef struct {
  207. struct xfs_ihash *ip_hash; /* pointer to hash header */
  208. struct xfs_inode *ip_next; /* inode hash link forw */
  209. struct xfs_inode *ip_mnext; /* next inode in mount list */
  210. struct xfs_inode *ip_mprev; /* ptr to prev inode */
  211. struct xfs_inode **ip_prevp; /* ptr to prev i_next */
  212. struct xfs_mount *ip_mount; /* fs mount struct ptr */
  213. } xfs_iptr_t;
  214. typedef struct xfs_inode {
  215. /* Inode linking and identification information. */
  216. struct xfs_ihash *i_hash; /* pointer to hash header */
  217. struct xfs_inode *i_next; /* inode hash link forw */
  218. struct xfs_inode *i_mnext; /* next inode in mount list */
  219. struct xfs_inode *i_mprev; /* ptr to prev inode */
  220. struct xfs_inode **i_prevp; /* ptr to prev i_next */
  221. struct xfs_mount *i_mount; /* fs mount struct ptr */
  222. struct list_head i_reclaim; /* reclaim list */
  223. struct bhv_desc i_bhv_desc; /* inode behavior descriptor*/
  224. struct xfs_dquot *i_udquot; /* user dquot */
  225. struct xfs_dquot *i_gdquot; /* group dquot */
  226. /* Inode location stuff */
  227. xfs_ino_t i_ino; /* inode number (agno/agino)*/
  228. xfs_daddr_t i_blkno; /* blkno of inode buffer */
  229. ushort i_len; /* len of inode buffer */
  230. ushort i_boffset; /* off of inode in buffer */
  231. /* Extent information. */
  232. xfs_ifork_t *i_afp; /* attribute fork pointer */
  233. xfs_ifork_t i_df; /* data fork */
  234. /* Transaction and locking information. */
  235. struct xfs_trans *i_transp; /* ptr to owning transaction*/
  236. struct xfs_inode_log_item *i_itemp; /* logging information */
  237. mrlock_t i_lock; /* inode lock */
  238. mrlock_t i_iolock; /* inode IO lock */
  239. sema_t i_flock; /* inode flush lock */
  240. atomic_t i_pincount; /* inode pin count */
  241. wait_queue_head_t i_ipin_wait; /* inode pinning wait queue */
  242. #ifdef HAVE_REFCACHE
  243. struct xfs_inode **i_refcache; /* ptr to entry in ref cache */
  244. struct xfs_inode *i_release; /* inode to unref */
  245. #endif
  246. /* I/O state */
  247. xfs_iocore_t i_iocore; /* I/O core */
  248. /* Miscellaneous state. */
  249. unsigned short i_flags; /* see defined flags below */
  250. unsigned char i_update_core; /* timestamps/size is dirty */
  251. unsigned char i_update_size; /* di_size field is dirty */
  252. unsigned int i_gen; /* generation count */
  253. unsigned int i_delayed_blks; /* count of delay alloc blks */
  254. xfs_dinode_core_t i_d; /* most of ondisk inode */
  255. xfs_chashlist_t *i_chash; /* cluster hash list header */
  256. struct xfs_inode *i_cnext; /* cluster hash link forward */
  257. struct xfs_inode *i_cprev; /* cluster hash link backward */
  258. /* Trace buffers per inode. */
  259. #ifdef XFS_BMAP_TRACE
  260. struct ktrace *i_xtrace; /* inode extent list trace */
  261. #endif
  262. #ifdef XFS_BMBT_TRACE
  263. struct ktrace *i_btrace; /* inode bmap btree trace */
  264. #endif
  265. #ifdef XFS_RW_TRACE
  266. struct ktrace *i_rwtrace; /* inode read/write trace */
  267. #endif
  268. #ifdef XFS_ILOCK_TRACE
  269. struct ktrace *i_lock_trace; /* inode lock/unlock trace */
  270. #endif
  271. #ifdef XFS_DIR2_TRACE
  272. struct ktrace *i_dir_trace; /* inode directory trace */
  273. #endif
  274. } xfs_inode_t;
  275. #endif /* __KERNEL__ */
  276. /*
  277. * Fork handling.
  278. */
  279. #define XFS_IFORK_PTR(ip,w) \
  280. ((w) == XFS_DATA_FORK ? &(ip)->i_df : (ip)->i_afp)
  281. #define XFS_IFORK_Q(ip) XFS_CFORK_Q(&(ip)->i_d)
  282. #define XFS_IFORK_DSIZE(ip) XFS_CFORK_DSIZE(&ip->i_d, ip->i_mount)
  283. #define XFS_IFORK_ASIZE(ip) XFS_CFORK_ASIZE(&ip->i_d, ip->i_mount)
  284. #define XFS_IFORK_SIZE(ip,w) XFS_CFORK_SIZE(&ip->i_d, ip->i_mount, w)
  285. #define XFS_IFORK_FORMAT(ip,w) XFS_CFORK_FORMAT(&ip->i_d, w)
  286. #define XFS_IFORK_FMT_SET(ip,w,n) XFS_CFORK_FMT_SET(&ip->i_d, w, n)
  287. #define XFS_IFORK_NEXTENTS(ip,w) XFS_CFORK_NEXTENTS(&ip->i_d, w)
  288. #define XFS_IFORK_NEXT_SET(ip,w,n) XFS_CFORK_NEXT_SET(&ip->i_d, w, n)
  289. #ifdef __KERNEL__
  290. /*
  291. * In-core inode flags.
  292. */
  293. #define XFS_IGRIO 0x0001 /* inode used for guaranteed rate i/o */
  294. #define XFS_IUIOSZ 0x0002 /* inode i/o sizes have been explicitly set */
  295. #define XFS_IQUIESCE 0x0004 /* we have started quiescing for this inode */
  296. #define XFS_IRECLAIM 0x0008 /* we have started reclaiming this inode */
  297. #define XFS_ISTALE 0x0010 /* inode has been staled */
  298. #define XFS_IRECLAIMABLE 0x0020 /* inode can be reclaimed */
  299. #define XFS_INEW 0x0040
  300. /*
  301. * Flags for inode locking.
  302. */
  303. #define XFS_IOLOCK_EXCL 0x001
  304. #define XFS_IOLOCK_SHARED 0x002
  305. #define XFS_ILOCK_EXCL 0x004
  306. #define XFS_ILOCK_SHARED 0x008
  307. #define XFS_IUNLOCK_NONOTIFY 0x010
  308. /* XFS_IOLOCK_NESTED 0x020 */
  309. #define XFS_EXTENT_TOKEN_RD 0x040
  310. #define XFS_SIZE_TOKEN_RD 0x080
  311. #define XFS_EXTSIZE_RD (XFS_EXTENT_TOKEN_RD|XFS_SIZE_TOKEN_RD)
  312. #define XFS_WILLLEND 0x100 /* Always acquire tokens for lending */
  313. #define XFS_EXTENT_TOKEN_WR (XFS_EXTENT_TOKEN_RD | XFS_WILLLEND)
  314. #define XFS_SIZE_TOKEN_WR (XFS_SIZE_TOKEN_RD | XFS_WILLLEND)
  315. #define XFS_EXTSIZE_WR (XFS_EXTSIZE_RD | XFS_WILLLEND)
  316. /* XFS_SIZE_TOKEN_WANT 0x200 */
  317. #define XFS_LOCK_MASK \
  318. (XFS_IOLOCK_EXCL | XFS_IOLOCK_SHARED | XFS_ILOCK_EXCL | \
  319. XFS_ILOCK_SHARED | XFS_EXTENT_TOKEN_RD | XFS_SIZE_TOKEN_RD | \
  320. XFS_WILLLEND)
  321. /*
  322. * Flags for xfs_iflush()
  323. */
  324. #define XFS_IFLUSH_DELWRI_ELSE_SYNC 1
  325. #define XFS_IFLUSH_DELWRI_ELSE_ASYNC 2
  326. #define XFS_IFLUSH_SYNC 3
  327. #define XFS_IFLUSH_ASYNC 4
  328. #define XFS_IFLUSH_DELWRI 5
  329. /*
  330. * Flags for xfs_itruncate_start().
  331. */
  332. #define XFS_ITRUNC_DEFINITE 0x1
  333. #define XFS_ITRUNC_MAYBE 0x2
  334. #define XFS_ITOV(ip) BHV_TO_VNODE(XFS_ITOBHV(ip))
  335. #define XFS_ITOV_NULL(ip) BHV_TO_VNODE_NULL(XFS_ITOBHV(ip))
  336. #define XFS_ITOBHV(ip) ((struct bhv_desc *)(&((ip)->i_bhv_desc)))
  337. #define XFS_BHVTOI(bhvp) ((xfs_inode_t *)((char *)(bhvp) - \
  338. (char *)&(((xfs_inode_t *)0)->i_bhv_desc)))
  339. #define BHV_IS_XFS(bdp) (BHV_OPS(bdp) == &xfs_vnodeops)
  340. /*
  341. * For multiple groups support: if S_ISGID bit is set in the parent
  342. * directory, group of new file is set to that of the parent, and
  343. * new subdirectory gets S_ISGID bit from parent.
  344. */
  345. #define XFS_INHERIT_GID(pip, vfsp) \
  346. (((vfsp)->vfs_flag & VFS_GRPID) || ((pip)->i_d.di_mode & S_ISGID))
  347. /*
  348. * xfs_iget.c prototypes.
  349. */
  350. #define IGET_CREATE 1
  351. void xfs_ihash_init(struct xfs_mount *);
  352. void xfs_ihash_free(struct xfs_mount *);
  353. void xfs_chash_init(struct xfs_mount *);
  354. void xfs_chash_free(struct xfs_mount *);
  355. xfs_inode_t *xfs_inode_incore(struct xfs_mount *, xfs_ino_t,
  356. struct xfs_trans *);
  357. void xfs_inode_lock_init(xfs_inode_t *, struct vnode *);
  358. int xfs_iget(struct xfs_mount *, struct xfs_trans *, xfs_ino_t,
  359. uint, uint, xfs_inode_t **, xfs_daddr_t);
  360. void xfs_iput(xfs_inode_t *, uint);
  361. void xfs_iput_new(xfs_inode_t *, uint);
  362. void xfs_ilock(xfs_inode_t *, uint);
  363. int xfs_ilock_nowait(xfs_inode_t *, uint);
  364. void xfs_iunlock(xfs_inode_t *, uint);
  365. void xfs_ilock_demote(xfs_inode_t *, uint);
  366. void xfs_iflock(xfs_inode_t *);
  367. int xfs_iflock_nowait(xfs_inode_t *);
  368. uint xfs_ilock_map_shared(xfs_inode_t *);
  369. void xfs_iunlock_map_shared(xfs_inode_t *, uint);
  370. void xfs_ifunlock(xfs_inode_t *);
  371. void xfs_ireclaim(xfs_inode_t *);
  372. int xfs_finish_reclaim(xfs_inode_t *, int, int);
  373. int xfs_finish_reclaim_all(struct xfs_mount *, int);
  374. /*
  375. * xfs_inode.c prototypes.
  376. */
  377. int xfs_itobp(struct xfs_mount *, struct xfs_trans *,
  378. xfs_inode_t *, xfs_dinode_t **, struct xfs_buf **,
  379. xfs_daddr_t);
  380. int xfs_iread(struct xfs_mount *, struct xfs_trans *, xfs_ino_t,
  381. xfs_inode_t **, xfs_daddr_t);
  382. int xfs_iread_extents(struct xfs_trans *, xfs_inode_t *, int);
  383. int xfs_ialloc(struct xfs_trans *, xfs_inode_t *, mode_t,
  384. xfs_nlink_t, xfs_dev_t, struct cred *, xfs_prid_t,
  385. int, struct xfs_buf **, boolean_t *, xfs_inode_t **);
  386. void xfs_xlate_dinode_core(xfs_caddr_t, struct xfs_dinode_core *,
  387. int);
  388. uint xfs_ip2xflags(struct xfs_inode *);
  389. uint xfs_dic2xflags(struct xfs_dinode_core *);
  390. int xfs_ifree(struct xfs_trans *, xfs_inode_t *,
  391. struct xfs_bmap_free *);
  392. void xfs_itruncate_start(xfs_inode_t *, uint, xfs_fsize_t);
  393. int xfs_itruncate_finish(struct xfs_trans **, xfs_inode_t *,
  394. xfs_fsize_t, int, int);
  395. int xfs_iunlink(struct xfs_trans *, xfs_inode_t *);
  396. int xfs_igrow_start(xfs_inode_t *, xfs_fsize_t, struct cred *);
  397. void xfs_igrow_finish(struct xfs_trans *, xfs_inode_t *,
  398. xfs_fsize_t, int);
  399. void xfs_idestroy_fork(xfs_inode_t *, int);
  400. void xfs_idestroy(xfs_inode_t *);
  401. void xfs_idata_realloc(xfs_inode_t *, int, int);
  402. void xfs_iextract(xfs_inode_t *);
  403. void xfs_iext_realloc(xfs_inode_t *, int, int);
  404. void xfs_iroot_realloc(xfs_inode_t *, int, int);
  405. void xfs_ipin(xfs_inode_t *);
  406. void xfs_iunpin(xfs_inode_t *);
  407. int xfs_iextents_copy(xfs_inode_t *, xfs_bmbt_rec_t *, int);
  408. int xfs_iflush(xfs_inode_t *, uint);
  409. void xfs_iflush_all(struct xfs_mount *);
  410. int xfs_iaccess(xfs_inode_t *, mode_t, cred_t *);
  411. uint xfs_iroundup(uint);
  412. void xfs_ichgtime(xfs_inode_t *, int);
  413. xfs_fsize_t xfs_file_last_byte(xfs_inode_t *);
  414. void xfs_lock_inodes(xfs_inode_t **, int, int, uint);
  415. #define xfs_ipincount(ip) ((unsigned int) atomic_read(&ip->i_pincount))
  416. #ifdef DEBUG
  417. void xfs_isize_check(struct xfs_mount *, xfs_inode_t *, xfs_fsize_t);
  418. #else /* DEBUG */
  419. #define xfs_isize_check(mp, ip, isize)
  420. #endif /* DEBUG */
  421. #if defined(DEBUG)
  422. void xfs_inobp_check(struct xfs_mount *, struct xfs_buf *);
  423. #else
  424. #define xfs_inobp_check(mp, bp)
  425. #endif /* DEBUG */
  426. extern struct kmem_zone *xfs_chashlist_zone;
  427. extern struct kmem_zone *xfs_ifork_zone;
  428. extern struct kmem_zone *xfs_inode_zone;
  429. extern struct kmem_zone *xfs_ili_zone;
  430. extern struct vnodeops xfs_vnodeops;
  431. #endif /* __KERNEL__ */
  432. #endif /* __XFS_INODE_H__ */