]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: avoid repeated pointer dereferences
authorAlex Elder <aelder@sgi.com>
Thu, 15 Apr 2010 18:17:30 +0000 (18:17 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 19 May 2010 14:58:14 +0000 (09:58 -0500)
commit375a47ad9784fd16de89c21001ded539ef7fe183
tree33d82124eb213877450072f6fa1df6dbf05be7bf
parentef4ecfcb22f6dd02fbad7b4ec2bbdacef3078ae3
xfs: avoid repeated pointer dereferences

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@sgi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_log_recover.c