Commit 76ce9823 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Darrick J. Wong

xfs: remove the l_iclog_size_log field from struct xlog

This field is never used, so we can simply kill it.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
parent 72945d86
...@@ -1307,7 +1307,6 @@ xlog_get_iclog_buffer_size( ...@@ -1307,7 +1307,6 @@ xlog_get_iclog_buffer_size(
struct xfs_mount *mp, struct xfs_mount *mp,
struct xlog *log) struct xlog *log)
{ {
int size;
int xhdrs; int xhdrs;
if (mp->m_logbufs <= 0) if (mp->m_logbufs <= 0)
...@@ -1319,13 +1318,6 @@ xlog_get_iclog_buffer_size( ...@@ -1319,13 +1318,6 @@ xlog_get_iclog_buffer_size(
* Buffer size passed in from mount system call. * Buffer size passed in from mount system call.
*/ */
if (mp->m_logbsize > 0) { if (mp->m_logbsize > 0) {
size = log->l_iclog_size = mp->m_logbsize;
log->l_iclog_size_log = 0;
while (size != 1) {
log->l_iclog_size_log++;
size >>= 1;
}
if (xfs_sb_version_haslogv2(&mp->m_sb)) { if (xfs_sb_version_haslogv2(&mp->m_sb)) {
/* # headers = size / 32k /* # headers = size / 32k
* one header holds cycles from 32k of data * one header holds cycles from 32k of data
...@@ -1346,7 +1338,6 @@ xlog_get_iclog_buffer_size( ...@@ -1346,7 +1338,6 @@ xlog_get_iclog_buffer_size(
/* All machines use 32kB buffers by default. */ /* All machines use 32kB buffers by default. */
log->l_iclog_size = XLOG_BIG_RECORD_BSIZE; log->l_iclog_size = XLOG_BIG_RECORD_BSIZE;
log->l_iclog_size_log = XLOG_BIG_RECORD_BSHIFT;
/* the default log size is 16k or 32k which is one header sector */ /* the default log size is 16k or 32k which is one header sector */
log->l_iclog_hsize = BBSIZE; log->l_iclog_hsize = BBSIZE;
......
...@@ -361,7 +361,6 @@ struct xlog { ...@@ -361,7 +361,6 @@ struct xlog {
int l_iclog_heads; /* # of iclog header sectors */ int l_iclog_heads; /* # of iclog header sectors */
uint l_sectBBsize; /* sector size in BBs (2^n) */ uint l_sectBBsize; /* sector size in BBs (2^n) */
int l_iclog_size; /* size of log in bytes */ int l_iclog_size; /* size of log in bytes */
int l_iclog_size_log; /* log power size of log */
int l_iclog_bufs; /* number of iclog buffers */ int l_iclog_bufs; /* number of iclog buffers */
xfs_daddr_t l_logBBstart; /* start block of log */ xfs_daddr_t l_logBBstart; /* start block of log */
int l_logsize; /* size of log in bytes */ int l_logsize; /* size of log in bytes */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment