Skip to content

Commit 706b2e9

Browse files
committed
Call wapbl_flush() with waitfor = 1 from the syncer, so the journal is
flushed periodically. Looked at by dhill@ and natano@. Tested by jy-p@. No objections.
1 parent eb68815 commit 706b2e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sys/ufs/ffs/ffs_vfsops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1510,7 +1510,7 @@ ffs_sync(struct mount *mp, int waitfor, struct ucred *cred, struct proc *p)
15101510

15111511
#ifdef WAPBL
15121512
if (mp->mnt_wapbl) {
1513-
error = wapbl_flush(mp->mnt_wapbl, 0);
1513+
error = wapbl_flush(mp->mnt_wapbl, waitfor != MNT_NOWAIT);
15141514
if (error)
15151515
allerror = error;
15161516
}

0 commit comments

Comments
 (0)