| To: | lachlan@xxxxxxx |
|---|---|
| Subject: | Re: xfs_bmap_add_extent_delay_real: Uninited r[3] corrupts startoff |
| From: | Shailendra Tripathi <stripathi@xxxxxxxxx> |
| Date: | Tue, 14 Nov 2006 16:32:13 -0800 |
| Cc: | Vlad Apostolov <vapo@xxxxxxx>, xfs mailing list <xfs@xxxxxxxxxxx>, xfs-dev@xxxxxxx |
| In-reply-to: | <455A589E.4040607@sgi.com> |
| References: | <4529F8A8.6080900@agami.com> <452C44A2.7000907@sgi.com> <455A589E.4040607@sgi.com> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Thunderbird 1.5.0.8 (X11/20061025) |
|
Hi Lachlan, I would prefer manual assignment here than struct assignment. r[1].br_startoff and r[1].br_blockcount will be modified immediately, so it is not worth assigning via ( r[1] = PREV) as it does extra instructions. Compiler would most likely eliminate the extra assignment but, why to leave on the wit of the compiler. It should be like r[1].br_state = PREV.br_state; r[1].br_startblock = 0 ; /* No fancy stuff required here as the aim here is that br_startoff does not get any thing random */ Regards, Shailendra Lachlan McIlroy wrote: This should be all that's needed. This code handles the case where the middle |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: xfs_bmap_add_extent_delay_real: Uninited r[3] corrupts startoff, Lachlan McIlroy |
|---|---|
| Next by Date: | Re: [RFC 0/3] Convert XFS inode hashes to radix trees, Shailendra Tripathi |
| Previous by Thread: | Re: xfs_bmap_add_extent_delay_real: Uninited r[3] corrupts startoff, Lachlan McIlroy |
| Next by Thread: | Re: xfs_bmap_add_extent_delay_real: Uninited r[3] corrupts startoff, Lachlan McIlroy |
| Indexes: | [Date] [Thread] [Top] [All Lists] |