Changeset View
Changeset View
Standalone View
Standalone View
head/sys/geom/journal/g_journal.c
Show First 20 Lines • Show All 2,868 Lines • ▼ Show 20 Lines | if (error != 0) { | ||||
GJ_DEBUG(0, "vn_start_write(%s) failed (error=%d).", | GJ_DEBUG(0, "vn_start_write(%s) failed (error=%d).", | ||||
mountpoint, error); | mountpoint, error); | ||||
goto next; | goto next; | ||||
} | } | ||||
save = curthread_pflags_set(TDP_SYNCIO); | save = curthread_pflags_set(TDP_SYNCIO); | ||||
GJ_TIMER_START(1, &bt); | GJ_TIMER_START(1, &bt); | ||||
vfs_msync(mp, MNT_NOWAIT); | vfs_periodic(mp, MNT_NOWAIT); | ||||
GJ_TIMER_STOP(1, &bt, "Msync time of %s", mountpoint); | GJ_TIMER_STOP(1, &bt, "Msync time of %s", mountpoint); | ||||
GJ_TIMER_START(1, &bt); | GJ_TIMER_START(1, &bt); | ||||
error = VFS_SYNC(mp, MNT_NOWAIT); | error = VFS_SYNC(mp, MNT_NOWAIT); | ||||
if (error == 0) | if (error == 0) | ||||
GJ_TIMER_STOP(1, &bt, "Sync time of %s", mountpoint); | GJ_TIMER_STOP(1, &bt, "Sync time of %s", mountpoint); | ||||
else { | else { | ||||
GJ_DEBUG(0, "Cannot sync file system %s (error=%d).", | GJ_DEBUG(0, "Cannot sync file system %s (error=%d).", | ||||
▲ Show 20 Lines • Show All 129 Lines • Show Last 20 Lines |