Diff for /xfs-linux/xfs_inode.c between versions 1.468 and 1.469

version 1.468, 2007/08/02 16:04:40 version 1.469, 2007/08/02 16:07:02
Line 634  xfs_iformat_extents( Line 634  xfs_iformat_extents(
                 xfs_validate_extents(ifp, nex, XFS_EXTFMT_INODE(ip));                  xfs_validate_extents(ifp, nex, XFS_EXTFMT_INODE(ip));
                 for (i = 0; i < nex; i++, dp++) {                  for (i = 0; i < nex; i++, dp++) {
                         xfs_bmbt_rec_host_t *ep = xfs_iext_get_ext(ifp, i);                          xfs_bmbt_rec_host_t *ep = xfs_iext_get_ext(ifp, i);
                         ep->l0 = INT_GET(get_unaligned((__uint64_t*)&dp->l0),                          ep->l0 = be64_to_cpu(get_unaligned(&dp->l0));
                                                                 ARCH_CONVERT);                          ep->l1 = be64_to_cpu(get_unaligned(&dp->l1));
                         ep->l1 = INT_GET(get_unaligned((__uint64_t*)&dp->l1),  
                                                                 ARCH_CONVERT);  
                 }                  }
                 XFS_BMAP_TRACE_EXLIST(ip, nex, whichfork);                  XFS_BMAP_TRACE_EXLIST(ip, nex, whichfork);
                 if (whichfork != XFS_DATA_FORK ||                  if (whichfork != XFS_DATA_FORK ||
Line 2916  xfs_iextents_copy( Line 2914  xfs_iextents_copy(
                 }                  }
   
                 /* Translate to on disk format */                  /* Translate to on disk format */
                 put_unaligned(INT_GET(ep->l0, ARCH_CONVERT),                  put_unaligned(cpu_to_be64(ep->l0), &dp->l0);
                               (__uint64_t*)&dp->l0);                  put_unaligned(cpu_to_be64(ep->l1), &dp->l1);
                 put_unaligned(INT_GET(ep->l1, ARCH_CONVERT),  
                               (__uint64_t*)&dp->l1);  
                 dp++;                  dp++;
                 copied++;                  copied++;
         }          }

Removed from v.1.468  
changed lines
  Added in v.1.469


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>