2 * Copyright (c) 2000-2002,2005 Silicon Graphics, Inc.
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.
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.
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
20 #include "xfs_format.h"
21 #include "xfs_log_format.h"
22 #include "xfs_trans_resv.h"
25 #include "xfs_mount.h"
26 #include "xfs_inode.h"
27 #include "xfs_trans.h"
28 #include "xfs_inode_item.h"
29 #include "xfs_error.h"
30 #include "xfs_trace.h"
31 #include "xfs_trans_priv.h"
35 kmem_zone_t *xfs_ili_zone; /* inode log item zone */
37 static inline struct xfs_inode_log_item *INODE_ITEM(struct xfs_log_item *lip)
39 return container_of(lip, struct xfs_inode_log_item, ili_item);
43 xfs_inode_item_data_fork_size(
44 struct xfs_inode_log_item *iip,
48 struct xfs_inode *ip = iip->ili_inode;
50 switch (ip->i_d.di_format) {
51 case XFS_DINODE_FMT_EXTENTS:
52 if ((iip->ili_fields & XFS_ILOG_DEXT) &&
53 ip->i_d.di_nextents > 0 &&
54 ip->i_df.if_bytes > 0) {
55 /* worst case, doesn't subtract delalloc extents */
56 *nbytes += XFS_IFORK_DSIZE(ip);
60 case XFS_DINODE_FMT_BTREE:
61 if ((iip->ili_fields & XFS_ILOG_DBROOT) &&
62 ip->i_df.if_broot_bytes > 0) {
63 *nbytes += ip->i_df.if_broot_bytes;
67 case XFS_DINODE_FMT_LOCAL:
68 if ((iip->ili_fields & XFS_ILOG_DDATA) &&
69 ip->i_df.if_bytes > 0) {
70 *nbytes += roundup(ip->i_df.if_bytes, 4);
75 case XFS_DINODE_FMT_DEV:
76 case XFS_DINODE_FMT_UUID:
85 xfs_inode_item_attr_fork_size(
86 struct xfs_inode_log_item *iip,
90 struct xfs_inode *ip = iip->ili_inode;
92 switch (ip->i_d.di_aformat) {
93 case XFS_DINODE_FMT_EXTENTS:
94 if ((iip->ili_fields & XFS_ILOG_AEXT) &&
95 ip->i_d.di_anextents > 0 &&
96 ip->i_afp->if_bytes > 0) {
97 /* worst case, doesn't subtract unused space */
98 *nbytes += XFS_IFORK_ASIZE(ip);
102 case XFS_DINODE_FMT_BTREE:
103 if ((iip->ili_fields & XFS_ILOG_ABROOT) &&
104 ip->i_afp->if_broot_bytes > 0) {
105 *nbytes += ip->i_afp->if_broot_bytes;
109 case XFS_DINODE_FMT_LOCAL:
110 if ((iip->ili_fields & XFS_ILOG_ADATA) &&
111 ip->i_afp->if_bytes > 0) {
112 *nbytes += roundup(ip->i_afp->if_bytes, 4);
123 * This returns the number of iovecs needed to log the given inode item.
125 * We need one iovec for the inode log format structure, one for the
126 * inode core, and possibly one for the inode data/extents/b-tree root
127 * and one for the inode attribute data/extents/b-tree root.
131 struct xfs_log_item *lip,
135 struct xfs_inode_log_item *iip = INODE_ITEM(lip);
136 struct xfs_inode *ip = iip->ili_inode;
139 *nbytes += sizeof(struct xfs_inode_log_format) +
140 xfs_icdinode_size(ip->i_d.di_version);
142 xfs_inode_item_data_fork_size(iip, nvecs, nbytes);
144 xfs_inode_item_attr_fork_size(iip, nvecs, nbytes);
148 xfs_inode_item_format_data_fork(
149 struct xfs_inode_log_item *iip,
150 struct xfs_inode_log_format *ilf,
151 struct xfs_log_vec *lv,
152 struct xfs_log_iovec **vecp)
154 struct xfs_inode *ip = iip->ili_inode;
157 switch (ip->i_d.di_format) {
158 case XFS_DINODE_FMT_EXTENTS:
160 ~(XFS_ILOG_DDATA | XFS_ILOG_DBROOT |
161 XFS_ILOG_DEV | XFS_ILOG_UUID);
163 if ((iip->ili_fields & XFS_ILOG_DEXT) &&
164 ip->i_d.di_nextents > 0 &&
165 ip->i_df.if_bytes > 0) {
166 struct xfs_bmbt_rec *p;
168 ASSERT(ip->i_df.if_u1.if_extents != NULL);
169 ASSERT(ip->i_df.if_bytes / sizeof(xfs_bmbt_rec_t) > 0);
171 p = xlog_prepare_iovec(lv, vecp, XLOG_REG_TYPE_IEXT);
172 data_bytes = xfs_iextents_copy(ip, p, XFS_DATA_FORK);
173 xlog_finish_iovec(lv, *vecp, data_bytes);
175 ASSERT(data_bytes <= ip->i_df.if_bytes);
177 ilf->ilf_dsize = data_bytes;
180 iip->ili_fields &= ~XFS_ILOG_DEXT;
183 case XFS_DINODE_FMT_BTREE:
185 ~(XFS_ILOG_DDATA | XFS_ILOG_DEXT |
186 XFS_ILOG_DEV | XFS_ILOG_UUID);
188 if ((iip->ili_fields & XFS_ILOG_DBROOT) &&
189 ip->i_df.if_broot_bytes > 0) {
190 ASSERT(ip->i_df.if_broot != NULL);
191 xlog_copy_iovec(lv, vecp, XLOG_REG_TYPE_IBROOT,
193 ip->i_df.if_broot_bytes);
194 ilf->ilf_dsize = ip->i_df.if_broot_bytes;
197 ASSERT(!(iip->ili_fields &
199 iip->ili_fields &= ~XFS_ILOG_DBROOT;
202 case XFS_DINODE_FMT_LOCAL:
204 ~(XFS_ILOG_DEXT | XFS_ILOG_DBROOT |
205 XFS_ILOG_DEV | XFS_ILOG_UUID);
206 if ((iip->ili_fields & XFS_ILOG_DDATA) &&
207 ip->i_df.if_bytes > 0) {
209 * Round i_bytes up to a word boundary.
210 * The underlying memory is guaranteed to
211 * to be there by xfs_idata_realloc().
213 data_bytes = roundup(ip->i_df.if_bytes, 4);
214 ASSERT(ip->i_df.if_real_bytes == 0 ||
215 ip->i_df.if_real_bytes == data_bytes);
216 ASSERT(ip->i_df.if_u1.if_data != NULL);
217 ASSERT(ip->i_d.di_size > 0);
218 xlog_copy_iovec(lv, vecp, XLOG_REG_TYPE_ILOCAL,
219 ip->i_df.if_u1.if_data, data_bytes);
220 ilf->ilf_dsize = (unsigned)data_bytes;
223 iip->ili_fields &= ~XFS_ILOG_DDATA;
226 case XFS_DINODE_FMT_DEV:
228 ~(XFS_ILOG_DDATA | XFS_ILOG_DBROOT |
229 XFS_ILOG_DEXT | XFS_ILOG_UUID);
230 if (iip->ili_fields & XFS_ILOG_DEV)
231 ilf->ilf_u.ilfu_rdev = ip->i_df.if_u2.if_rdev;
233 case XFS_DINODE_FMT_UUID:
235 ~(XFS_ILOG_DDATA | XFS_ILOG_DBROOT |
236 XFS_ILOG_DEXT | XFS_ILOG_DEV);
237 if (iip->ili_fields & XFS_ILOG_UUID)
238 ilf->ilf_u.ilfu_uuid = ip->i_df.if_u2.if_uuid;
247 xfs_inode_item_format_attr_fork(
248 struct xfs_inode_log_item *iip,
249 struct xfs_inode_log_format *ilf,
250 struct xfs_log_vec *lv,
251 struct xfs_log_iovec **vecp)
253 struct xfs_inode *ip = iip->ili_inode;
256 switch (ip->i_d.di_aformat) {
257 case XFS_DINODE_FMT_EXTENTS:
259 ~(XFS_ILOG_ADATA | XFS_ILOG_ABROOT);
261 if ((iip->ili_fields & XFS_ILOG_AEXT) &&
262 ip->i_d.di_anextents > 0 &&
263 ip->i_afp->if_bytes > 0) {
264 struct xfs_bmbt_rec *p;
266 ASSERT(ip->i_afp->if_bytes / sizeof(xfs_bmbt_rec_t) ==
267 ip->i_d.di_anextents);
268 ASSERT(ip->i_afp->if_u1.if_extents != NULL);
270 p = xlog_prepare_iovec(lv, vecp, XLOG_REG_TYPE_IATTR_EXT);
271 data_bytes = xfs_iextents_copy(ip, p, XFS_ATTR_FORK);
272 xlog_finish_iovec(lv, *vecp, data_bytes);
274 ilf->ilf_asize = data_bytes;
277 iip->ili_fields &= ~XFS_ILOG_AEXT;
280 case XFS_DINODE_FMT_BTREE:
282 ~(XFS_ILOG_ADATA | XFS_ILOG_AEXT);
284 if ((iip->ili_fields & XFS_ILOG_ABROOT) &&
285 ip->i_afp->if_broot_bytes > 0) {
286 ASSERT(ip->i_afp->if_broot != NULL);
288 xlog_copy_iovec(lv, vecp, XLOG_REG_TYPE_IATTR_BROOT,
290 ip->i_afp->if_broot_bytes);
291 ilf->ilf_asize = ip->i_afp->if_broot_bytes;
294 iip->ili_fields &= ~XFS_ILOG_ABROOT;
297 case XFS_DINODE_FMT_LOCAL:
299 ~(XFS_ILOG_AEXT | XFS_ILOG_ABROOT);
301 if ((iip->ili_fields & XFS_ILOG_ADATA) &&
302 ip->i_afp->if_bytes > 0) {
304 * Round i_bytes up to a word boundary.
305 * The underlying memory is guaranteed to
306 * to be there by xfs_idata_realloc().
308 data_bytes = roundup(ip->i_afp->if_bytes, 4);
309 ASSERT(ip->i_afp->if_real_bytes == 0 ||
310 ip->i_afp->if_real_bytes == data_bytes);
311 ASSERT(ip->i_afp->if_u1.if_data != NULL);
312 xlog_copy_iovec(lv, vecp, XLOG_REG_TYPE_IATTR_LOCAL,
313 ip->i_afp->if_u1.if_data,
315 ilf->ilf_asize = (unsigned)data_bytes;
318 iip->ili_fields &= ~XFS_ILOG_ADATA;
328 * This is called to fill in the vector of log iovecs for the given inode
329 * log item. It fills the first item with an inode log format structure,
330 * the second with the on-disk inode structure, and a possible third and/or
331 * fourth with the inode data/extents/b-tree root and inode attributes
332 * data/extents/b-tree root.
335 xfs_inode_item_format(
336 struct xfs_log_item *lip,
337 struct xfs_log_vec *lv)
339 struct xfs_inode_log_item *iip = INODE_ITEM(lip);
340 struct xfs_inode *ip = iip->ili_inode;
341 struct xfs_inode_log_format *ilf;
342 struct xfs_log_iovec *vecp = NULL;
344 ASSERT(ip->i_d.di_version > 1);
346 ilf = xlog_prepare_iovec(lv, &vecp, XLOG_REG_TYPE_IFORMAT);
347 ilf->ilf_type = XFS_LI_INODE;
348 ilf->ilf_ino = ip->i_ino;
349 ilf->ilf_blkno = ip->i_imap.im_blkno;
350 ilf->ilf_len = ip->i_imap.im_len;
351 ilf->ilf_boffset = ip->i_imap.im_boffset;
352 ilf->ilf_fields = XFS_ILOG_CORE;
353 ilf->ilf_size = 2; /* format + core */
354 xlog_finish_iovec(lv, vecp, sizeof(struct xfs_inode_log_format));
356 xlog_copy_iovec(lv, &vecp, XLOG_REG_TYPE_ICORE,
358 xfs_icdinode_size(ip->i_d.di_version));
360 xfs_inode_item_format_data_fork(iip, ilf, lv, &vecp);
361 if (XFS_IFORK_Q(ip)) {
362 xfs_inode_item_format_attr_fork(iip, ilf, lv, &vecp);
365 ~(XFS_ILOG_ADATA | XFS_ILOG_ABROOT | XFS_ILOG_AEXT);
368 /* update the format with the exact fields we actually logged */
369 ilf->ilf_fields |= (iip->ili_fields & ~XFS_ILOG_TIMESTAMP);
373 * This is called to pin the inode associated with the inode log
374 * item in memory so it cannot be written out.
378 struct xfs_log_item *lip)
380 struct xfs_inode *ip = INODE_ITEM(lip)->ili_inode;
382 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL));
384 trace_xfs_inode_pin(ip, _RET_IP_);
385 atomic_inc(&ip->i_pincount);
390 * This is called to unpin the inode associated with the inode log
391 * item which was previously pinned with a call to xfs_inode_item_pin().
393 * Also wake up anyone in xfs_iunpin_wait() if the count goes to 0.
396 xfs_inode_item_unpin(
397 struct xfs_log_item *lip,
400 struct xfs_inode *ip = INODE_ITEM(lip)->ili_inode;
402 trace_xfs_inode_unpin(ip, _RET_IP_);
403 ASSERT(atomic_read(&ip->i_pincount) > 0);
404 if (atomic_dec_and_test(&ip->i_pincount))
405 wake_up_bit(&ip->i_flags, __XFS_IPINNED_BIT);
410 struct xfs_log_item *lip,
411 struct list_head *buffer_list)
413 struct xfs_inode_log_item *iip = INODE_ITEM(lip);
414 struct xfs_inode *ip = iip->ili_inode;
415 struct xfs_buf *bp = NULL;
416 uint rval = XFS_ITEM_SUCCESS;
419 if (xfs_ipincount(ip) > 0)
420 return XFS_ITEM_PINNED;
422 if (!xfs_ilock_nowait(ip, XFS_ILOCK_SHARED))
423 return XFS_ITEM_LOCKED;
426 * Re-check the pincount now that we stabilized the value by
429 if (xfs_ipincount(ip) > 0) {
430 rval = XFS_ITEM_PINNED;
435 * Stale inode items should force out the iclog.
437 if (ip->i_flags & XFS_ISTALE) {
438 rval = XFS_ITEM_PINNED;
443 * Someone else is already flushing the inode. Nothing we can do
444 * here but wait for the flush to finish and remove the item from
447 if (!xfs_iflock_nowait(ip)) {
448 rval = XFS_ITEM_FLUSHING;
452 ASSERT(iip->ili_fields != 0 || XFS_FORCED_SHUTDOWN(ip->i_mount));
453 ASSERT(iip->ili_logged == 0 || XFS_FORCED_SHUTDOWN(ip->i_mount));
455 spin_unlock(&lip->li_ailp->xa_lock);
457 error = xfs_iflush(ip, &bp);
459 if (!xfs_buf_delwri_queue(bp, buffer_list))
460 rval = XFS_ITEM_FLUSHING;
464 spin_lock(&lip->li_ailp->xa_lock);
466 xfs_iunlock(ip, XFS_ILOCK_SHARED);
471 * Unlock the inode associated with the inode log item.
472 * Clear the fields of the inode and inode log item that
473 * are specific to the current transaction. If the
474 * hold flags is set, do not unlock the inode.
477 xfs_inode_item_unlock(
478 struct xfs_log_item *lip)
480 struct xfs_inode_log_item *iip = INODE_ITEM(lip);
481 struct xfs_inode *ip = iip->ili_inode;
482 unsigned short lock_flags;
484 ASSERT(ip->i_itemp != NULL);
485 ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL));
487 lock_flags = iip->ili_lock_flags;
488 iip->ili_lock_flags = 0;
490 xfs_iunlock(ip, lock_flags);
494 * This is called to find out where the oldest active copy of the inode log
495 * item in the on disk log resides now that the last log write of it completed
496 * at the given lsn. Since we always re-log all dirty data in an inode, the
497 * latest copy in the on disk log is the only one that matters. Therefore,
498 * simply return the given lsn.
500 * If the inode has been marked stale because the cluster is being freed, we
501 * don't want to (re-)insert this inode into the AIL. There is a race condition
502 * where the cluster buffer may be unpinned before the inode is inserted into
503 * the AIL during transaction committed processing. If the buffer is unpinned
504 * before the inode item has been committed and inserted, then it is possible
505 * for the buffer to be written and IO completes before the inode is inserted
506 * into the AIL. In that case, we'd be inserting a clean, stale inode into the
507 * AIL which will never get removed. It will, however, get reclaimed which
508 * triggers an assert in xfs_inode_free() complaining about freein an inode
511 * To avoid this, just unpin the inode directly and return a LSN of -1 so the
512 * transaction committed code knows that it does not need to do any further
513 * processing on the item.
516 xfs_inode_item_committed(
517 struct xfs_log_item *lip,
520 struct xfs_inode_log_item *iip = INODE_ITEM(lip);
521 struct xfs_inode *ip = iip->ili_inode;
523 if (xfs_iflags_test(ip, XFS_ISTALE)) {
524 xfs_inode_item_unpin(lip, 0);
531 * XXX rcc - this one really has to do something. Probably needs
532 * to stamp in a new field in the incore inode.
535 xfs_inode_item_committing(
536 struct xfs_log_item *lip,
539 INODE_ITEM(lip)->ili_last_lsn = lsn;
543 * This is the ops vector shared by all buf log items.
545 static const struct xfs_item_ops xfs_inode_item_ops = {
546 .iop_size = xfs_inode_item_size,
547 .iop_format = xfs_inode_item_format,
548 .iop_pin = xfs_inode_item_pin,
549 .iop_unpin = xfs_inode_item_unpin,
550 .iop_unlock = xfs_inode_item_unlock,
551 .iop_committed = xfs_inode_item_committed,
552 .iop_push = xfs_inode_item_push,
553 .iop_committing = xfs_inode_item_committing
558 * Initialize the inode log item for a newly allocated (in-core) inode.
562 struct xfs_inode *ip,
563 struct xfs_mount *mp)
565 struct xfs_inode_log_item *iip;
567 ASSERT(ip->i_itemp == NULL);
568 iip = ip->i_itemp = kmem_zone_zalloc(xfs_ili_zone, KM_SLEEP);
571 xfs_log_item_init(mp, &iip->ili_item, XFS_LI_INODE,
572 &xfs_inode_item_ops);
576 * Free the inode log item and any memory hanging off of it.
579 xfs_inode_item_destroy(
582 kmem_zone_free(xfs_ili_zone, ip->i_itemp);
587 * This is the inode flushing I/O completion routine. It is called
588 * from interrupt level when the buffer containing the inode is
589 * flushed to disk. It is responsible for removing the inode item
590 * from the AIL if it has not been re-logged, and unlocking the inode's
593 * To reduce AIL lock traffic as much as possible, we scan the buffer log item
594 * list for other inodes that will run this function. We remove them from the
595 * buffer list so we can process all the inode IO completions in one AIL lock
601 struct xfs_log_item *lip)
603 struct xfs_inode_log_item *iip;
604 struct xfs_log_item *blip;
605 struct xfs_log_item *next;
606 struct xfs_log_item *prev;
607 struct xfs_ail *ailp = lip->li_ailp;
611 * Scan the buffer IO completions for other inodes being completed and
612 * attach them to the current inode log item.
616 while (blip != NULL) {
617 if (blip->li_cb != xfs_iflush_done) {
619 blip = blip->li_bio_list;
623 /* remove from list */
624 next = blip->li_bio_list;
628 prev->li_bio_list = next;
631 /* add to current list */
632 blip->li_bio_list = lip->li_bio_list;
633 lip->li_bio_list = blip;
636 * while we have the item, do the unlocked check for needing
639 iip = INODE_ITEM(blip);
640 if (iip->ili_logged && blip->li_lsn == iip->ili_flush_lsn)
646 /* make sure we capture the state of the initial inode. */
647 iip = INODE_ITEM(lip);
648 if (iip->ili_logged && lip->li_lsn == iip->ili_flush_lsn)
652 * We only want to pull the item from the AIL if it is
653 * actually there and its location in the log has not
654 * changed since we started the flush. Thus, we only bother
655 * if the ili_logged flag is set and the inode's lsn has not
656 * changed. First we check the lsn outside
657 * the lock since it's cheaper, and then we recheck while
658 * holding the lock before removing the inode from the AIL.
661 struct xfs_log_item *log_items[need_ail];
663 spin_lock(&ailp->xa_lock);
664 for (blip = lip; blip; blip = blip->li_bio_list) {
665 iip = INODE_ITEM(blip);
666 if (iip->ili_logged &&
667 blip->li_lsn == iip->ili_flush_lsn) {
668 log_items[i++] = blip;
670 ASSERT(i <= need_ail);
672 /* xfs_trans_ail_delete_bulk() drops the AIL lock. */
673 xfs_trans_ail_delete_bulk(ailp, log_items, i,
674 SHUTDOWN_CORRUPT_INCORE);
679 * clean up and unlock the flush lock now we are done. We can clear the
680 * ili_last_fields bits now that we know that the data corresponding to
681 * them is safely on disk.
683 for (blip = lip; blip; blip = next) {
684 next = blip->li_bio_list;
685 blip->li_bio_list = NULL;
687 iip = INODE_ITEM(blip);
689 iip->ili_last_fields = 0;
690 xfs_ifunlock(iip->ili_inode);
695 * This is the inode flushing abort routine. It is called from xfs_iflush when
696 * the filesystem is shutting down to clean up the inode state. It is
697 * responsible for removing the inode item from the AIL if it has not been
698 * re-logged, and unlocking the inode's flush lock.
705 xfs_inode_log_item_t *iip = ip->i_itemp;
708 struct xfs_ail *ailp = iip->ili_item.li_ailp;
709 if (iip->ili_item.li_flags & XFS_LI_IN_AIL) {
710 spin_lock(&ailp->xa_lock);
711 if (iip->ili_item.li_flags & XFS_LI_IN_AIL) {
712 /* xfs_trans_ail_delete() drops the AIL lock. */
713 xfs_trans_ail_delete(ailp, &iip->ili_item,
715 SHUTDOWN_LOG_IO_ERROR :
716 SHUTDOWN_CORRUPT_INCORE);
718 spin_unlock(&ailp->xa_lock);
722 * Clear the ili_last_fields bits now that we know that the
723 * data corresponding to them is safely on disk.
725 iip->ili_last_fields = 0;
727 * Clear the inode logging fields so no more flushes are
733 * Release the inode's flush lock since we're done with it.
741 struct xfs_log_item *lip)
743 xfs_iflush_abort(INODE_ITEM(lip)->ili_inode, true);
747 * convert an xfs_inode_log_format struct from either 32 or 64 bit versions
748 * (which can have different field alignments) to the native version
751 xfs_inode_item_format_convert(
752 xfs_log_iovec_t *buf,
753 xfs_inode_log_format_t *in_f)
755 if (buf->i_len == sizeof(xfs_inode_log_format_32_t)) {
756 xfs_inode_log_format_32_t *in_f32 = buf->i_addr;
758 in_f->ilf_type = in_f32->ilf_type;
759 in_f->ilf_size = in_f32->ilf_size;
760 in_f->ilf_fields = in_f32->ilf_fields;
761 in_f->ilf_asize = in_f32->ilf_asize;
762 in_f->ilf_dsize = in_f32->ilf_dsize;
763 in_f->ilf_ino = in_f32->ilf_ino;
764 /* copy biggest field of ilf_u */
765 memcpy(in_f->ilf_u.ilfu_uuid.__u_bits,
766 in_f32->ilf_u.ilfu_uuid.__u_bits,
768 in_f->ilf_blkno = in_f32->ilf_blkno;
769 in_f->ilf_len = in_f32->ilf_len;
770 in_f->ilf_boffset = in_f32->ilf_boffset;
772 } else if (buf->i_len == sizeof(xfs_inode_log_format_64_t)){
773 xfs_inode_log_format_64_t *in_f64 = buf->i_addr;
775 in_f->ilf_type = in_f64->ilf_type;
776 in_f->ilf_size = in_f64->ilf_size;
777 in_f->ilf_fields = in_f64->ilf_fields;
778 in_f->ilf_asize = in_f64->ilf_asize;
779 in_f->ilf_dsize = in_f64->ilf_dsize;
780 in_f->ilf_ino = in_f64->ilf_ino;
781 /* copy biggest field of ilf_u */
782 memcpy(in_f->ilf_u.ilfu_uuid.__u_bits,
783 in_f64->ilf_u.ilfu_uuid.__u_bits,
785 in_f->ilf_blkno = in_f64->ilf_blkno;
786 in_f->ilf_len = in_f64->ilf_len;
787 in_f->ilf_boffset = in_f64->ilf_boffset;
790 return -EFSCORRUPTED;