aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/quota/xfs_qm.c8
-rw-r--r--fs/xfs/xfs_log_recover.c67
-rw-r--r--fs/xfs/xfs_mount.c7
3 files changed, 0 insertions, 82 deletions
diff --git a/fs/xfs/quota/xfs_qm.c b/fs/xfs/quota/xfs_qm.c
index b5145201d85d..38e764146644 100644
--- a/fs/xfs/quota/xfs_qm.c
+++ b/fs/xfs/quota/xfs_qm.c
@@ -1331,9 +1331,6 @@ xfs_qm_qino_alloc(
1331 */ 1331 */
1332 spin_lock(&mp->m_sb_lock); 1332 spin_lock(&mp->m_sb_lock);
1333 if (flags & XFS_QMOPT_SBVERSION) { 1333 if (flags & XFS_QMOPT_SBVERSION) {
1334#if defined(DEBUG) && defined(XFS_LOUD_RECOVERY)
1335 unsigned oldv = mp->m_sb.sb_versionnum;
1336#endif
1337 ASSERT(!xfs_sb_version_hasquota(&mp->m_sb)); 1334 ASSERT(!xfs_sb_version_hasquota(&mp->m_sb));
1338 ASSERT((sbfields & (XFS_SB_VERSIONNUM | XFS_SB_UQUOTINO | 1335 ASSERT((sbfields & (XFS_SB_VERSIONNUM | XFS_SB_UQUOTINO |
1339 XFS_SB_GQUOTINO | XFS_SB_QFLAGS)) == 1336 XFS_SB_GQUOTINO | XFS_SB_QFLAGS)) ==
@@ -1346,11 +1343,6 @@ xfs_qm_qino_alloc(
1346 1343
1347 /* qflags will get updated _after_ quotacheck */ 1344 /* qflags will get updated _after_ quotacheck */
1348 mp->m_sb.sb_qflags = 0; 1345 mp->m_sb.sb_qflags = 0;
1349#if defined(DEBUG) && defined(XFS_LOUD_RECOVERY)
1350 cmn_err(CE_NOTE,
1351 "Old superblock version %x, converting to %x.",
1352 oldv, mp->m_sb.sb_versionnum);
1353#endif
1354 } 1346 }
1355 if (flags & XFS_QMOPT_UQUOTA) 1347 if (flags & XFS_QMOPT_UQUOTA)
1356 mp->m_sb.sb_uquotino = (*ip)->i_ino; 1348 mp->m_sb.sb_uquotino = (*ip)->i_ino;
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c
index 3bfff4220a74..e5b74db5d2e0 100644
--- a/fs/xfs/xfs_log_recover.c
+++ b/fs/xfs/xfs_log_recover.c
@@ -3394,42 +3394,6 @@ xlog_pack_data(
3394 } 3394 }
3395} 3395}
3396 3396
3397#if defined(DEBUG) && defined(XFS_LOUD_RECOVERY)
3398STATIC void
3399xlog_unpack_data_checksum(
3400 xlog_rec_header_t *rhead,
3401 xfs_caddr_t dp,
3402 xlog_t *log)
3403{
3404 __be32 *up = (__be32 *)dp;
3405 uint chksum = 0;
3406 int i;
3407
3408 /* divide length by 4 to get # words */
3409 for (i=0; i < be32_to_cpu(rhead->h_len) >> 2; i++) {
3410 chksum ^= be32_to_cpu(*up);
3411 up++;
3412 }
3413 if (chksum != be32_to_cpu(rhead->h_chksum)) {
3414 if (rhead->h_chksum ||
3415 ((log->l_flags & XLOG_CHKSUM_MISMATCH) == 0)) {
3416 cmn_err(CE_DEBUG,
3417 "XFS: LogR chksum mismatch: was (0x%x) is (0x%x)\n",
3418 be32_to_cpu(rhead->h_chksum), chksum);
3419 cmn_err(CE_DEBUG,
3420"XFS: Disregard message if filesystem was created with non-DEBUG kernel");
3421 if (xfs_sb_version_haslogv2(&log->l_mp->m_sb)) {
3422 cmn_err(CE_DEBUG,
3423 "XFS: LogR this is a LogV2 filesystem\n");
3424 }
3425 log->l_flags |= XLOG_CHKSUM_MISMATCH;
3426 }
3427 }
3428}
3429#else
3430#define xlog_unpack_data_checksum(rhead, dp, log)
3431#endif
3432
3433STATIC void 3397STATIC void
3434xlog_unpack_data( 3398xlog_unpack_data(
3435 xlog_rec_header_t *rhead, 3399 xlog_rec_header_t *rhead,
@@ -3453,8 +3417,6 @@ xlog_unpack_data(
3453 dp += BBSIZE; 3417 dp += BBSIZE;
3454 } 3418 }
3455 } 3419 }
3456
3457 xlog_unpack_data_checksum(rhead, dp, log);
3458} 3420}
3459 3421
3460STATIC int 3422STATIC int
@@ -4009,10 +3971,6 @@ xlog_recover_check_summary(
4009 xfs_agf_t *agfp; 3971 xfs_agf_t *agfp;
4010 xfs_buf_t *agfbp; 3972 xfs_buf_t *agfbp;
4011 xfs_buf_t *agibp; 3973 xfs_buf_t *agibp;
4012 xfs_buf_t *sbbp;
4013#ifdef XFS_LOUD_RECOVERY
4014 xfs_sb_t *sbp;
4015#endif
4016 xfs_agnumber_t agno; 3974 xfs_agnumber_t agno;
4017 __uint64_t freeblks; 3975 __uint64_t freeblks;
4018 __uint64_t itotal; 3976 __uint64_t itotal;
@@ -4047,30 +4005,5 @@ xlog_recover_check_summary(
4047 xfs_buf_relse(agibp); 4005 xfs_buf_relse(agibp);
4048 } 4006 }
4049 } 4007 }
4050
4051 sbbp = xfs_getsb(mp, 0);
4052#ifdef XFS_LOUD_RECOVERY
4053 sbp = &mp->m_sb;
4054 xfs_sb_from_disk(sbp, XFS_BUF_TO_SBP(sbbp));
4055 cmn_err(CE_NOTE,
4056 "xlog_recover_check_summary: sb_icount %Lu itotal %Lu",
4057 sbp->sb_icount, itotal);
4058 cmn_err(CE_NOTE,
4059 "xlog_recover_check_summary: sb_ifree %Lu itotal %Lu",
4060 sbp->sb_ifree, ifree);
4061 cmn_err(CE_NOTE,
4062 "xlog_recover_check_summary: sb_fdblocks %Lu freeblks %Lu",
4063 sbp->sb_fdblocks, freeblks);
4064#if 0
4065 /*
4066 * This is turned off until I account for the allocation
4067 * btree blocks which live in free space.
4068 */
4069 ASSERT(sbp->sb_icount == itotal);
4070 ASSERT(sbp->sb_ifree == ifree);
4071 ASSERT(sbp->sb_fdblocks == freeblks);
4072#endif
4073#endif
4074 xfs_buf_relse(sbbp);
4075} 4008}
4076#endif /* DEBUG */ 4009#endif /* DEBUG */
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c
index e79b56b4bca6..d7bf38c8cd1c 100644
--- a/fs/xfs/xfs_mount.c
+++ b/fs/xfs/xfs_mount.c
@@ -1405,13 +1405,6 @@ xfs_mountfs(
1405 xfs_qm_mount_quotas(mp); 1405 xfs_qm_mount_quotas(mp);
1406 } 1406 }
1407 1407
1408#if defined(DEBUG) && defined(XFS_LOUD_RECOVERY)
1409 if (XFS_IS_QUOTA_ON(mp))
1410 xfs_fs_cmn_err(CE_NOTE, mp, "Disk quotas turned on");
1411 else
1412 xfs_fs_cmn_err(CE_NOTE, mp, "Disk quotas not turned on");
1413#endif
1414
1415 /* 1408 /*
1416 * Now we are mounted, reserve a small amount of unused space for 1409 * Now we are mounted, reserve a small amount of unused space for
1417 * privileged transactions. This is needed so that transaction 1410 * privileged transactions. This is needed so that transaction