| To: | Dave Chinner <david@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 44/50] xfs: Reduce allocations during CIL insertion |
| From: | Mark Tinguely <tinguely@xxxxxxx> |
| Date: | Tue, 13 Aug 2013 08:28:20 -0500 |
| Cc: | xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <1376304611-22994-45-git-send-email-david@xxxxxxxxxxxxx> |
| References: | <1376304611-22994-1-git-send-email-david@xxxxxxxxxxxxx> <1376304611-22994-45-git-send-email-david@xxxxxxxxxxxxx> |
| User-agent: | Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20120122 Thunderbird/9.0 |
On 08/12/13 05:50, Dave Chinner wrote: From: Dave Chinner<dchinner@xxxxxxxxxx> Now that we have the size of the object before the formatting pass is called, we can allocation the log vector and it's buffer in a single allocation rather than two separate allocations. Store the size of the allocated buffer in the log vector so that we potentially avoid allocation for future modifications of the object. While touching this code, remove the IOP_FORMAT definition. Signed-off-by: Dave Chinner<dchinner@xxxxxxxxxx> --- ... ... + lv->lv_buf_len = xlog_cil_lv_item_format(lip, lv); Looks good Reviewed-by: Mark Tinguely <tinguely@xxxxxxx> |
| Previous by Date: | Entschuldigung, es war der falsche Link - Hier der Beweis im Video, dass das gar nichts ausmacht! 4.575â in einer Woche kinderleicht verdient!, Martin Werfel |
|---|---|
| Next by Date: | Re: [PATCH 45/50] xfs: avoid CIL allocation during insert, Mark Tinguely |
| Previous by Thread: | ***** SUSPECTED SPAM ***** [PATCH 44/50] xfs: Reduce allocations during CIL insertion, Dave Chinner |
| Next by Thread: | ***** SUSPECTED SPAM ***** [PATCH 11/50] xfs: split out transaction reservation code, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |