diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2016-06-21 04:53:28 +0300 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-06-21 04:53:28 +0300 |
commit | e66a4c678e64932eb4befd95a348b9632603d27c (patch) | |
tree | a9111f18f7356cd4dd0fc1c841f88b3250b9dcb1 /fs/xfs/xfs_super.c | |
parent | 4d89e20bf1b12bd5aa6917efc86da723b331deef (diff) | |
download | linux-e66a4c678e64932eb4befd95a348b9632603d27c.tar.xz |
xfs: convert list of extents to free into a regular list
In struct xfs_bmap_free, convert the open-coded free extent list to
a regular list, then use list_sort to sort it prior to processing.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_super.c')
-rw-r--r-- | fs/xfs/xfs_super.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index 2d2810851871..5f3c7299532b 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c @@ -1700,8 +1700,9 @@ xfs_init_zones(void) if (!xfs_log_ticket_zone) goto out_free_ioend_bioset; - xfs_bmap_free_item_zone = kmem_zone_init(sizeof(xfs_bmap_free_item_t), - "xfs_bmap_free_item"); + xfs_bmap_free_item_zone = kmem_zone_init( + sizeof(struct xfs_bmap_free_item), + "xfs_bmap_free_item"); if (!xfs_bmap_free_item_zone) goto out_destroy_log_ticket_zone; |