| To: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 19/27] xfs: kill struct xfs_dir2_data |
| From: | Alex Elder <aelder@xxxxxxx> |
| Date: | Tue, 5 Jul 2011 22:38:35 -0500 |
| Cc: | <xfs@xxxxxxxxxxx> |
| In-reply-to: | <20110701094606.199361663@xxxxxxxxxxxxxxxxxxxxxx> |
| References: | <20110701094321.936534538@xxxxxxxxxxxxxxxxxxxxxx> <20110701094606.199361663@xxxxxxxxxxxxxxxxxxxxxx> |
| Reply-to: | <aelder@xxxxxxx> |
On Fri, 2011-07-01 at 05:43 -0400, Christoph Hellwig wrote: > Remove the confusing xfs_dir2_data structure. It is supposed to describe > an XFS dir2 data btree block, but due to the variable sized nature of > almost all elements in it it can't actuall do anything close to that > job. In addition to accessing the fixed offset header structure it was > only used to get a pointer to the first dir or unused entry after it, > which can be trivially replaced by pointer arithmetics on the header > pointer. For most users that is actually more natural anyway, as they > don't use a typed pointer but rather a character pointer for further > arithmetics. > > Signed-off-by: Christoph Hellwig <hch@xxxxxx> Looks good. I like the diagrams. Reviewed-by: Alex Elder <aelder@xxxxxxx> |
| Previous by Date: | Re: [PATCH 18/27] xfs: avoid usage of struct xfs_dir2_data, Alex Elder |
|---|---|
| Next by Date: | Re: [PATCH 22/27] xfs: use generic get_unaligned_beXX helpers, Dave Chinner |
| Previous by Thread: | Re: [PATCH 19/27] xfs: kill struct xfs_dir2_data, Dave Chinner |
| Next by Thread: | [PATCH 21/27] xfs: cleanup struct xfs_dir2_leaf, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |