diff options
Diffstat (limited to 'fs/xfs/xfs_log_recover.c')
| -rw-r--r-- | fs/xfs/xfs_log_recover.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c index a21dc61ec09e..1fc9e9042e0e 100644 --- a/fs/xfs/xfs_log_recover.c +++ b/fs/xfs/xfs_log_recover.c | |||
| @@ -1570,16 +1570,6 @@ xlog_find_zeroed( | |||
| 1570 | if (last_cycle != 0) { /* log completely written to */ | 1570 | if (last_cycle != 0) { /* log completely written to */ |
| 1571 | xlog_put_bp(bp); | 1571 | xlog_put_bp(bp); |
| 1572 | return 0; | 1572 | return 0; |
| 1573 | } else if (first_cycle != 1) { | ||
| 1574 | /* | ||
| 1575 | * If the cycle of the last block is zero, the cycle of | ||
| 1576 | * the first block must be 1. If it's not, maybe we're | ||
| 1577 | * not looking at a log... Bail out. | ||
| 1578 | */ | ||
| 1579 | xfs_warn(log->l_mp, | ||
| 1580 | "Log inconsistent or not a log (last==0, first!=1)"); | ||
| 1581 | error = -EINVAL; | ||
| 1582 | goto bp_err; | ||
| 1583 | } | 1573 | } |
| 1584 | 1574 | ||
| 1585 | /* we have a partially zeroed log */ | 1575 | /* we have a partially zeroed log */ |
