]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: record log sector size rather than log2(that)
authorAlex Elder <aelder@sgi.com>
Tue, 20 Apr 2010 07:09:59 +0000 (17:09 +1000)
committerAlex Elder <aelder@sgi.com>
Wed, 19 May 2010 14:58:15 +0000 (09:58 -0500)
commit9d46539567fea41dca480cd31ccf51a2a91c7347
tree0a5a8be3222d8138f382b492b96888c61041dd76
parent2c3a68ef4085d05bfd894fc56edf8cfd9cf66fa4
xfs: record log sector size rather than log2(that)

Change struct log so it keeps track of the size (in basic blocks) of
a log sector in l_sectBBsize rather than the log-base-2 of that
value (previously, l_sectbb_log).  The name was chosen for
consistency with the other fields in the structure that represent
a number of basic blocks.

(Updated so that a variable used in computing and verifying a log's
sector size is named "log2_size".  Also added the "BB" to the
structure field name, based on feedback from Eric Sandeen.  Also
dropped some superfluous parentheses.)

Signed-off-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
fs/xfs/xfs_log.c
fs/xfs/xfs_log_priv.h
fs/xfs/xfs_log_recover.c