Re: [PATCH 16/27] xfs: avoid usage of struct xfs_dir2_block

Christoph Hellwig
2011-07-06T08:35:53Z

On Wed, Jul 06, 2011 at 12:19:35PM +1000, Dave Chinner wrote:
> Took me a moment to realise what this does - turns the byte swap
> into a compile-time operation rather than a runtime operation.
> Nice.
>
> Perhaps we should do that same optimisation in other magic number
> checks around the place?

We should, and I should have been more consistant about it. In fact
I probably should split it into a separate patch.