aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_log.c
diff options
context:
space:
mode:
authorFelix Blyakher <felixb@sgi.com>2009-02-09 12:52:34 -0500
committerFelix Blyakher <felixb@sgi.com>2009-02-09 12:52:34 -0500
commit8e08f6eb34af13b78d379a025e4c9f8612b47b95 (patch)
tree663bb4dcfa4552bb8daf19055d7e4d86a0ad84c2 /fs/xfs/xfs_log.c
parent9483c89eae58bee79b0280c625ca35a7b78fa300 (diff)
parentfcafb71b57a039f2113b0321b3b5535fea3a0aca (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/fs/xfs/xfs
Diffstat (limited to 'fs/xfs/xfs_log.c')
-rw-r--r--fs/xfs/xfs_log.c28
1 files changed, 2 insertions, 26 deletions
diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c
index f4726f702a9e..493c07f6a99a 100644
--- a/fs/xfs/xfs_log.c
+++ b/fs/xfs/xfs_log.c
@@ -1164,32 +1164,8 @@ xlog_get_iclog_buffer_size(xfs_mount_t *mp,
1164 log->l_iclog_hsize = BBSIZE; 1164 log->l_iclog_hsize = BBSIZE;
1165 log->l_iclog_heads = 1; 1165 log->l_iclog_heads = 1;
1166 1166
1167 /* 1167done:
1168 * For 16KB, we use 3 32KB buffers. For 32KB block sizes, we use 1168 /* are we being asked to make the sizes selected above visible? */
1169 * 4 32KB buffers. For 64KB block sizes, we use 8 32KB buffers.
1170 */
1171 if (mp->m_sb.sb_blocksize >= 16*1024) {
1172 log->l_iclog_size = XLOG_BIG_RECORD_BSIZE;
1173 log->l_iclog_size_log = XLOG_BIG_RECORD_BSHIFT;
1174 if (mp->m_logbufs <= 0) {
1175 switch (mp->m_sb.sb_blocksize) {
1176 case 16*1024: /* 16 KB */
1177 log->l_iclog_bufs = 3;
1178 break;
1179 case 32*1024: /* 32 KB */
1180 log->l_iclog_bufs = 4;
1181 break;
1182 case 64*1024: /* 64 KB */
1183 log->l_iclog_bufs = 8;
1184 break;
1185 default:
1186 xlog_panic("XFS: Invalid blocksize");
1187 break;
1188 }
1189 }
1190 }
1191
1192done: /* are we being asked to make the sizes selected above visible? */
1193 if (mp->m_logbufs == 0) 1169 if (mp->m_logbufs == 0)
1194 mp->m_logbufs = log->l_iclog_bufs; 1170 mp->m_logbufs = log->l_iclog_bufs;
1195 if (mp->m_logbsize == 0) 1171 if (mp->m_logbsize == 0)