diff options
author | Dave Chinner <dchinner@redhat.com> | 2012-06-22 04:50:14 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-07-01 15:50:07 -0400 |
commit | 1d9025e56143c0c4aebebdb62e46618d3d284218 (patch) | |
tree | c31b34008dbd17ac1811c73cc515ea7f6247e2f0 /fs/xfs/xfs_dir2_sf.c | |
parent | 3605431fb9739a30ccd0c6380ae8e3c6f8e670a5 (diff) |
xfs: remove struct xfs_dabuf and infrastructure
The struct xfs_dabuf now only tracks a single xfs_buf and all the
information it holds can be gained directly from the xfs_buf. Hence
we can remove the struct dabuf and pass the xfs_buf around
everywhere.
Kill the struct dabuf and the associated infrastructure.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_dir2_sf.c')
-rw-r--r-- | fs/xfs/xfs_dir2_sf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_dir2_sf.c b/fs/xfs/xfs_dir2_sf.c index 19bf0c5e38f4..1b9fc3ec7e4b 100644 --- a/fs/xfs/xfs_dir2_sf.c +++ b/fs/xfs/xfs_dir2_sf.c | |||
@@ -222,7 +222,7 @@ xfs_dir2_block_sfsize( | |||
222 | int /* error */ | 222 | int /* error */ |
223 | xfs_dir2_block_to_sf( | 223 | xfs_dir2_block_to_sf( |
224 | xfs_da_args_t *args, /* operation arguments */ | 224 | xfs_da_args_t *args, /* operation arguments */ |
225 | xfs_dabuf_t *bp, /* block buffer */ | 225 | struct xfs_buf *bp, |
226 | int size, /* shortform directory size */ | 226 | int size, /* shortform directory size */ |
227 | xfs_dir2_sf_hdr_t *sfhp) /* shortform directory hdr */ | 227 | xfs_dir2_sf_hdr_t *sfhp) /* shortform directory hdr */ |
228 | { | 228 | { |
@@ -249,7 +249,7 @@ xfs_dir2_block_to_sf( | |||
249 | * and add local data. | 249 | * and add local data. |
250 | */ | 250 | */ |
251 | hdr = kmem_alloc(mp->m_dirblksize, KM_SLEEP); | 251 | hdr = kmem_alloc(mp->m_dirblksize, KM_SLEEP); |
252 | memcpy(hdr, bp->data, mp->m_dirblksize); | 252 | memcpy(hdr, bp->b_addr, mp->m_dirblksize); |
253 | logflags = XFS_ILOG_CORE; | 253 | logflags = XFS_ILOG_CORE; |
254 | if ((error = xfs_dir2_shrink_inode(args, mp->m_dirdatablk, bp))) { | 254 | if ((error = xfs_dir2_shrink_inode(args, mp->m_dirdatablk, bp))) { |
255 | ASSERT(error != ENOSPC); | 255 | ASSERT(error != ENOSPC); |