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>
This commit is contained in:

committed by
Dave Chinner

parent
4d89e20bf1
commit
e66a4c678e
@@ -43,7 +43,6 @@ int xfs_getbmap(struct xfs_inode *ip, struct getbmapx *bmv,
|
||||
|
||||
/* functions in xfs_bmap.c that are only needed by xfs_bmap_util.c */
|
||||
void xfs_bmap_del_free(struct xfs_bmap_free *flist,
|
||||
struct xfs_bmap_free_item *prev,
|
||||
struct xfs_bmap_free_item *free);
|
||||
int xfs_bmap_extsize_align(struct xfs_mount *mp, struct xfs_bmbt_irec *gotp,
|
||||
struct xfs_bmbt_irec *prevp, xfs_extlen_t extsz,
|
||||
|
Reference in New Issue
Block a user