[PATCH 2/5] xfs: avoid repeated pointer dereferences
Christoph Hellwig
hch at infradead.org
Fri Apr 16 12:06:24 CDT 2010
On Thu, Apr 15, 2010 at 01:17:30PM -0500, Alex Elder wrote:
> In xlog_find_cycle_start() use a local variable for some repeated
> operations rather than constantly accessing the memory location
> whose address is passed in.
>
> (This version drops an assertion that a pointer is non-null.)
>
> Signed-off-by: Alex Elder <aelder at sgi.com>
I'm not entirely convinced about the need for this, but it at least
looks correct, so:
Reviewed-by: Christoph Hellwig <hch at lst.de>
More information about the xfs
mailing list