Diff for /xfs-linux/xfs_bmap.c between versions 1.363 and 1.364

version 1.363, 2007/02/07 02:51:06 version 1.364, 2007/02/07 02:51:56
Line 185  xfs_bmap_btree_to_extents( Line 185  xfs_bmap_btree_to_extents(
         int                     *logflagsp, /* inode logging flags */          int                     *logflagsp, /* inode logging flags */
         int                     whichfork); /* data or attr fork */          int                     whichfork); /* data or attr fork */
   
 #ifdef DEBUG  
 /*  
  * Check that the extents list for the inode ip is in the right order.  
  */  
 STATIC void  
 xfs_bmap_check_extents(  
         xfs_inode_t             *ip,            /* incore inode pointer */  
         int                     whichfork);     /* data or attr fork */  
 #endif  
   
 /*  /*
  * Called by xfs_bmapi to update file extent records and the btree   * Called by xfs_bmapi to update file extent records and the btree
  * after removing space (or undoing a delayed allocation).   * after removing space (or undoing a delayed allocation).
Line 6045  xfs_bmap_eof( Line 6035  xfs_bmap_eof(
 }  }
   
 #ifdef DEBUG  #ifdef DEBUG
 /*  
  * Check that the extents list for the inode ip is in the right order.  
  */  
 STATIC void  
 xfs_bmap_check_extents(  
         xfs_inode_t             *ip,            /* incore inode pointer */  
         int                     whichfork)      /* data or attr fork */  
 {  
         xfs_bmbt_rec_t          *ep;            /* current extent entry */  
         xfs_extnum_t            idx;            /* extent record index */  
         xfs_ifork_t             *ifp;           /* inode fork pointer */  
         xfs_extnum_t            nextents;       /* number of extents in list */  
         xfs_bmbt_rec_t          *nextp;         /* next extent entry */  
   
         ifp = XFS_IFORK_PTR(ip, whichfork);  
         ASSERT(ifp->if_flags & XFS_IFEXTENTS);  
         nextents = ifp->if_bytes / (uint)sizeof(xfs_bmbt_rec_t);  
         ep = xfs_iext_get_ext(ifp, 0);  
         for (idx = 0; idx < nextents - 1; idx++) {  
                 nextp = xfs_iext_get_ext(ifp, idx + 1);  
                 xfs_btree_check_rec(XFS_BTNUM_BMAP, (void *)ep,  
                         (void *)(nextp));  
                 ep = nextp;  
         }  
 }  
   
 STATIC  STATIC
 xfs_buf_t *  xfs_buf_t *
 xfs_bmap_get_bp(  xfs_bmap_get_bp(

Removed from v.1.363  
changed lines
  Added in v.1.364


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