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)
commit69ce58f08a3c455ff74cfcde90e9ab267d67f636
tree0a5a8be3222d8138f382b492b96888c61041dd76
parent1414a6046ab402ac21545522270c32c576327eb9
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