From: Ben Gras Date: Mon, 26 Apr 2010 17:12:34 +0000 (+0000) Subject: vfs: start at vmnt[0] to sync mounted filesystems, not vmnt[1]. X-Git-Tag: v3.1.7~122 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/host.html?a=commitdiff_plain;h=94edf4fa12de40ccca7eaf69fb9a641288f7ef11;p=minix.git vfs: start at vmnt[0] to sync mounted filesystems, not vmnt[1]. --- diff --git a/servers/vfs/misc.c b/servers/vfs/misc.c index 31d73f0f4..6d3c25fab 100644 --- a/servers/vfs/misc.c +++ b/servers/vfs/misc.c @@ -264,7 +264,7 @@ PUBLIC int do_fcntl() PUBLIC int do_sync() { struct vmnt *vmp; - for (vmp = &vmnt[1]; vmp < &vmnt[NR_MNTS]; ++vmp) + for (vmp = &vmnt[0]; vmp < &vmnt[NR_MNTS]; ++vmp) if (vmp->m_dev != NO_DEV) req_sync(vmp->m_fs_e);