aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_mount.c
diff options
context:
space:
mode:
authorDave Chinner <david@fromorbit.com>2010-01-11 11:47:49 +0000
committerAlex Elder <aelder@sgi.com>2010-01-15 15:34:39 -0600
commite57336ff7fc7520bec7b3a7741043bdebaf622ea (patch)
tree6a1196e925f2cb7fc2cd5b9ca5d9510166088be2 /fs/xfs/xfs_mount.c
parent8b26c5825e023b1bccac7afd174ebe55b8905cb1 (diff)
downloadkernel_samsung_smdk4412-e57336ff7fc7520bec7b3a7741043bdebaf622ea.zip
kernel_samsung_smdk4412-e57336ff7fc7520bec7b3a7741043bdebaf622ea.tar.gz
kernel_samsung_smdk4412-e57336ff7fc7520bec7b3a7741043bdebaf622ea.tar.bz2
xfs: embed the pagb_list array in the perag structure
Now that the perag structure is allocated memory rather than held in an array, we don't need to have the busy extent array external to the structure. Embed it into the perag structure to avoid needing an extra allocation when setting up. Signed-off-by: Dave Chinner <david@fromorbit.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_mount.c')
-rw-r--r--fs/xfs/xfs_mount.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c
index be643e5..0df5045 100644
--- a/fs/xfs/xfs_mount.c
+++ b/fs/xfs/xfs_mount.c
@@ -247,10 +247,9 @@ xfs_free_perag(
for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) {
spin_lock(&mp->m_perag_lock);
pag = radix_tree_delete(&mp->m_perag_tree, agno);
+ ASSERT(pag);
ASSERT(atomic_read(&pag->pag_ref) == 0);
spin_unlock(&mp->m_perag_lock);
- ASSERT(pag);
- kmem_free(pag->pagb_list);
kmem_free(pag);
}
}