|
@@ -617,7 +617,8 @@ xfs_log_unmount_write(xfs_mount_t *mp)
|
|
|
reg[0].i_len = sizeof(magic);
|
|
|
XLOG_VEC_SET_TYPE(®[0], XLOG_REG_TYPE_UNMOUNT);
|
|
|
|
|
|
- error = xfs_log_reserve(mp, 600, 1, &tic, XFS_LOG, 0, 0);
|
|
|
+ error = xfs_log_reserve(mp, 600, 1, &tic,
|
|
|
+ XFS_LOG, 0, XLOG_UNMOUNT_REC_TYPE);
|
|
|
if (!error) {
|
|
|
/* remove inited flag */
|
|
|
((xlog_ticket_t *)tic)->t_flags = 0;
|
|
@@ -655,8 +656,11 @@ xfs_log_unmount_write(xfs_mount_t *mp)
|
|
|
} else {
|
|
|
LOG_UNLOCK(log, s);
|
|
|
}
|
|
|
- if (tic)
|
|
|
+ if (tic) {
|
|
|
+ xlog_trace_loggrant(log, tic, "unmount rec");
|
|
|
+ xlog_ungrant_log_space(log, tic);
|
|
|
xlog_state_put_ticket(log, tic);
|
|
|
+ }
|
|
|
} else {
|
|
|
/*
|
|
|
* We're already in forced_shutdown mode, couldn't
|