svn commit: r250891 - head/sys/ufs/ffs
Kirk McKusick
mckusick at FreeBSD.org
Wed May 22 00:17:50 UTC 2013
Author: mckusick
Date: Wed May 22 00:17:50 2013
New Revision: 250891
URL: http://svnweb.freebsd.org/changeset/base/250891
Log:
Properly spell sentinel (not sintenel or sentinal).
No functional changes.
Spotted by: kib
MFC after: 2 weeks
Modified:
head/sys/ufs/ffs/ffs_softdep.c
Modified: head/sys/ufs/ffs/ffs_softdep.c
==============================================================================
--- head/sys/ufs/ffs/ffs_softdep.c Tue May 21 21:58:00 2013 (r250890)
+++ head/sys/ufs/ffs/ffs_softdep.c Wed May 22 00:17:50 2013 (r250891)
@@ -656,8 +656,8 @@ FEATURE(softupdates, "FFS soft-updates s
#define D_SBDEP 24
#define D_JTRUNC 25
#define D_JFSYNC 26
-#define D_SENTINAL 27
-#define D_LAST D_SENTINAL
+#define D_SENTINEL 27
+#define D_LAST D_SENTINEL
unsigned long dep_current[D_LAST + 1];
unsigned long dep_total[D_LAST + 1];
@@ -1718,7 +1718,7 @@ process_worklist_item(mp, target, flags)
int target;
int flags;
{
- struct worklist sintenel;
+ struct worklist sentinel;
struct worklist *wk;
struct ufsmount *ump;
int matchcnt;
@@ -1736,14 +1736,14 @@ process_worklist_item(mp, target, flags)
PHOLD(curproc); /* Don't let the stack go away. */
ump = VFSTOUFS(mp);
matchcnt = 0;
- sintenel.wk_mp = NULL;
- sintenel.wk_type = D_SENTINAL;
- LIST_INSERT_HEAD(&ump->softdep_workitem_pending, &sintenel, wk_list);
- for (wk = LIST_NEXT(&sintenel, wk_list); wk != NULL;
- wk = LIST_NEXT(&sintenel, wk_list)) {
- if (wk->wk_type == D_SENTINAL) {
- LIST_REMOVE(&sintenel, wk_list);
- LIST_INSERT_AFTER(wk, &sintenel, wk_list);
+ sentinel.wk_mp = NULL;
+ sentinel.wk_type = D_SENTINEL;
+ LIST_INSERT_HEAD(&ump->softdep_workitem_pending, &sentinel, wk_list);
+ for (wk = LIST_NEXT(&sentinel, wk_list); wk != NULL;
+ wk = LIST_NEXT(&sentinel, wk_list)) {
+ if (wk->wk_type == D_SENTINEL) {
+ LIST_REMOVE(&sentinel, wk_list);
+ LIST_INSERT_AFTER(wk, &sentinel, wk_list);
continue;
}
if (wk->wk_state & INPROGRESS)
@@ -1800,11 +1800,11 @@ process_worklist_item(mp, target, flags)
wake_worklist(wk);
add_to_worklist(wk, WK_HEAD);
}
- LIST_REMOVE(&sintenel, wk_list);
+ LIST_REMOVE(&sentinel, wk_list);
/* Sentinal could've become the tail from remove_from_worklist. */
- if (ump->softdep_worklist_tail == &sintenel)
+ if (ump->softdep_worklist_tail == &sentinel)
ump->softdep_worklist_tail =
- (struct worklist *)sintenel.wk_list.le_prev;
+ (struct worklist *)sentinel.wk_list.le_prev;
PRELE(curproc);
return (matchcnt);
}
@@ -12127,7 +12127,7 @@ restart:
/*
* Sync all cylinder groups that were dirty at the time this function is
- * called. Newly dirtied cgs will be inserted before the sintenel. This
+ * called. Newly dirtied cgs will be inserted before the sentinel. This
* is used to flush freedep activity that may be holding up writes to a
* indirect block.
*/
@@ -12137,25 +12137,25 @@ sync_cgs(mp, waitfor)
int waitfor;
{
struct bmsafemap *bmsafemap;
- struct bmsafemap *sintenel;
+ struct bmsafemap *sentinel;
struct ufsmount *ump;
struct buf *bp;
int error;
- sintenel = malloc(sizeof(*sintenel), M_BMSAFEMAP, M_ZERO | M_WAITOK);
- sintenel->sm_cg = -1;
+ sentinel = malloc(sizeof(*sentinel), M_BMSAFEMAP, M_ZERO | M_WAITOK);
+ sentinel->sm_cg = -1;
ump = VFSTOUFS(mp);
error = 0;
ACQUIRE_LOCK(&lk);
- LIST_INSERT_HEAD(&ump->softdep_dirtycg, sintenel, sm_next);
- for (bmsafemap = LIST_NEXT(sintenel, sm_next); bmsafemap != NULL;
- bmsafemap = LIST_NEXT(sintenel, sm_next)) {
- /* Skip sintenels and cgs with no work to release. */
+ LIST_INSERT_HEAD(&ump->softdep_dirtycg, sentinel, sm_next);
+ for (bmsafemap = LIST_NEXT(sentinel, sm_next); bmsafemap != NULL;
+ bmsafemap = LIST_NEXT(sentinel, sm_next)) {
+ /* Skip sentinels and cgs with no work to release. */
if (bmsafemap->sm_cg == -1 ||
(LIST_EMPTY(&bmsafemap->sm_freehd) &&
LIST_EMPTY(&bmsafemap->sm_freewr))) {
- LIST_REMOVE(sintenel, sm_next);
- LIST_INSERT_AFTER(bmsafemap, sintenel, sm_next);
+ LIST_REMOVE(sentinel, sm_next);
+ LIST_INSERT_AFTER(bmsafemap, sentinel, sm_next);
continue;
}
/*
@@ -12165,8 +12165,8 @@ sync_cgs(mp, waitfor)
bp = getdirtybuf(bmsafemap->sm_buf, &lk, waitfor);
if (bp == NULL && waitfor == MNT_WAIT)
continue;
- LIST_REMOVE(sintenel, sm_next);
- LIST_INSERT_AFTER(bmsafemap, sintenel, sm_next);
+ LIST_REMOVE(sentinel, sm_next);
+ LIST_INSERT_AFTER(bmsafemap, sentinel, sm_next);
if (bp == NULL)
continue;
FREE_LOCK(&lk);
@@ -12178,9 +12178,9 @@ sync_cgs(mp, waitfor)
if (error)
break;
}
- LIST_REMOVE(sintenel, sm_next);
+ LIST_REMOVE(sentinel, sm_next);
FREE_LOCK(&lk);
- free(sintenel, M_BMSAFEMAP);
+ free(sentinel, M_BMSAFEMAP);
return (error);
}
More information about the svn-src-all
mailing list