| To: | Jeff Liu <jeff.liu@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH v2] xfs: improve xfs_iext_destroy() by freeing extent indirection array directly |
| From: | Dave Chinner <david@xxxxxxxxxxxxx> |
| Date: | Wed, 25 Sep 2013 09:45:37 +1000 |
| Cc: | "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx> |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <52419C4B.2020603@xxxxxxxxxx> |
| References: | <52419C4B.2020603@xxxxxxxxxx> |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
On Tue, Sep 24, 2013 at 10:06:03PM +0800, Jeff Liu wrote: > From: Jie Liu <jeff.liu@xxxxxxxxxx> > > To free the incore file extents stores at an indirection array, we > call the common routine xfs_iext_irec_remove() to remove a record > from the array one at a time in reverse order, which will resize an > extent indirection array repeatedly according to the array size. > > This is inefficient for dealing with a file with thousands of incore > extent records stores at indirection arrays. > > This patch improve this kind of things by freeing the extent records > from the indirection array directly so that we can get benefits for > reducing the overhead of alloc/free buffers which is depending on the > number of extents records. > > Signed-off-by: Jie Liu <jeff.liu@xxxxxxxxxx> Looks good. Reviewed-by: Dave Chinner <dchinner@xxxxxxxxxx> -- Dave Chinner david@xxxxxxxxxxxxx |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] xfs: fix the wrong new_size/rnew_size at xfs_iext_realloc_direct(), Dave Chinner |
|---|---|
| Next by Date: | Re: [PATCH 1/5] xfs: don't try to mark uncached buffers stale on error., Dave Chinner |
| Previous by Thread: | [PATCH v2] xfs: improve xfs_iext_destroy() by freeing extent indirection array directly, Jeff Liu |
| Next by Thread: | [XFS updates] XFS development tree branch, master, updated. v3.12-rc1-4-g566055d, xfs |
| Indexes: | [Date] [Thread] [Top] [All Lists] |