| To: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 02/25] xfs: remove impossible to read code in xfs_bmap_add_extent_delay_real |
| From: | Alex Elder <aelder@xxxxxxx> |
| Date: | Fri, 2 Sep 2011 17:23:02 -0500 |
| Cc: | <xfs@xxxxxxxxxxx> |
| In-reply-to: | <20110824060640.625806258@xxxxxxxxxxxxxxxxxxxxxx> |
| References: | <20110824060428.789245205@xxxxxxxxxxxxxxxxxxxxxx> <20110824060640.625806258@xxxxxxxxxxxxxxxxxxxxxx> |
| Reply-to: | <aelder@xxxxxxx> |
On Wed, 2011-08-24 at 02:04 -0400, Christoph Hellwig wrote: > We already have the worst case blocks reserved, so xfs_icsb_modify_counters > won't fail in xfs_bmap_add_extent_delay_real. In fact we've had an assert > to catch this case since day and it never triggered. So remove the code > to try smaller reservations, and just return the error for that case in > addition to keeping the assert. > > Signed-off-by: Christoph Hellwig <hch@xxxxxx> It was a very weird block of code that I never did really understand. It appears to be trying to recover from running out of space by reserving less and retrying. But that means you're not reserving enough to cover worst case, which wouldn't be safe. Anyway, given this function already has an error return path that could handle it if we actually had not pre-reserved enough blocks, this looks good. Reviewed-by: Alex Elder <aelder@xxxxxxx> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 01/25] xfs: remove the first extent special case in xfs_bmap_add_extent, Alex Elder |
|---|---|
| Next by Date: | Re: [PATCH 03/25] xfs: remove the nextents variable in xfs_bmapi, Alex Elder |
| Previous by Thread: | Re: [PATCH 01/25] xfs: remove the first extent special case in xfs_bmap_add_extent, Alex Elder |
| Next by Thread: | Re: [PATCH 03/25] xfs: remove the nextents variable in xfs_bmapi, Alex Elder |
| Indexes: | [Date] [Thread] [Top] [All Lists] |