diff options
Diffstat (limited to 'fs/xfs/xfs_bmap.c')
-rw-r--r-- | fs/xfs/xfs_bmap.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c index 27d36dc69ded..87795188cedf 100644 --- a/fs/xfs/xfs_bmap.c +++ b/fs/xfs/xfs_bmap.c | |||
@@ -185,16 +185,6 @@ xfs_bmap_btree_to_extents( | |||
185 | int *logflagsp, /* inode logging flags */ | 185 | int *logflagsp, /* inode logging flags */ |
186 | int whichfork); /* data or attr fork */ | 186 | int whichfork); /* data or attr fork */ |
187 | 187 | ||
188 | #ifdef DEBUG | ||
189 | /* | ||
190 | * Check that the extents list for the inode ip is in the right order. | ||
191 | */ | ||
192 | STATIC void | ||
193 | xfs_bmap_check_extents( | ||
194 | xfs_inode_t *ip, /* incore inode pointer */ | ||
195 | int whichfork); /* data or attr fork */ | ||
196 | #endif | ||
197 | |||
198 | /* | 188 | /* |
199 | * Called by xfs_bmapi to update file extent records and the btree | 189 | * Called by xfs_bmapi to update file extent records and the btree |
200 | * after removing space (or undoing a delayed allocation). | 190 | * after removing space (or undoing a delayed allocation). |
@@ -6045,32 +6035,6 @@ xfs_bmap_eof( | |||
6045 | } | 6035 | } |
6046 | 6036 | ||
6047 | #ifdef DEBUG | 6037 | #ifdef DEBUG |
6048 | /* | ||
6049 | * Check that the extents list for the inode ip is in the right order. | ||
6050 | */ | ||
6051 | STATIC void | ||
6052 | xfs_bmap_check_extents( | ||
6053 | xfs_inode_t *ip, /* incore inode pointer */ | ||
6054 | int whichfork) /* data or attr fork */ | ||
6055 | { | ||
6056 | xfs_bmbt_rec_t *ep; /* current extent entry */ | ||
6057 | xfs_extnum_t idx; /* extent record index */ | ||
6058 | xfs_ifork_t *ifp; /* inode fork pointer */ | ||
6059 | xfs_extnum_t nextents; /* number of extents in list */ | ||
6060 | xfs_bmbt_rec_t *nextp; /* next extent entry */ | ||
6061 | |||
6062 | ifp = XFS_IFORK_PTR(ip, whichfork); | ||
6063 | ASSERT(ifp->if_flags & XFS_IFEXTENTS); | ||
6064 | nextents = ifp->if_bytes / (uint)sizeof(xfs_bmbt_rec_t); | ||
6065 | ep = xfs_iext_get_ext(ifp, 0); | ||
6066 | for (idx = 0; idx < nextents - 1; idx++) { | ||
6067 | nextp = xfs_iext_get_ext(ifp, idx + 1); | ||
6068 | xfs_btree_check_rec(XFS_BTNUM_BMAP, (void *)ep, | ||
6069 | (void *)(nextp)); | ||
6070 | ep = nextp; | ||
6071 | } | ||
6072 | } | ||
6073 | |||
6074 | STATIC | 6038 | STATIC |
6075 | xfs_buf_t * | 6039 | xfs_buf_t * |
6076 | xfs_bmap_get_bp( | 6040 | xfs_bmap_get_bp( |