Commit e288864f310a1e7de1387da9722da51ac538782e

Stefan Sperling 2019-03-26T06:44:27

renmae GOT_FILEIDX_F_NOT_ON_DISK to GOT_FILEIDX_F_NOT_FLUSHED

diff --git a/lib/fileindex.c b/lib/fileindex.c
index a8587e9..5e6ac2f 100644
--- a/lib/fileindex.c
+++ b/lib/fileindex.c
@@ -122,7 +122,7 @@ got_fileindex_entry_add(struct got_fileindex *fileindex,
     struct got_fileindex_entry *entry)
 {
 	/* Flag this entry until it gets written out to disk. */
-	entry->flags |= GOT_FILEIDX_F_NOT_ON_DISK;
+	entry->flags |= GOT_FILEIDX_F_NOT_FLUSHED;
 
 	return add_entry(fileindex, entry);
 }
@@ -328,7 +328,7 @@ got_fileindex_write(struct got_fileindex *fileindex, FILE *outfile)
 		return got_ferror(outfile, GOT_ERR_IO);
 
 	RB_FOREACH(entry, got_fileindex_tree, &fileindex->entries) {
-		entry->flags &= ~GOT_FILEIDX_F_NOT_ON_DISK;
+		entry->flags &= ~GOT_FILEIDX_F_NOT_FLUSHED;
 		err = write_fileindex_entry(&ctx, entry, outfile);
 		if (err)
 			return err;
@@ -561,7 +561,7 @@ walk_fileindex(struct got_fileindex *fileindex, struct got_fileindex_entry *ie)
 	next = RB_NEXT(got_fileindex_tree, &fileindex->entries, ie);
 
 	/* Skip entries which were newly added by diff callbacks. */
-	while (next && (next->flags & GOT_FILEIDX_F_NOT_ON_DISK))
+	while (next && (next->flags & GOT_FILEIDX_F_NOT_FLUSHED))
 		next = RB_NEXT(got_fileindex_tree, &fileindex->entries, next);
 
 	return next;
diff --git a/lib/got_lib_fileindex.h b/lib/got_lib_fileindex.h
index 3131286..3bbed3d 100644
--- a/lib/got_lib_fileindex.h
+++ b/lib/got_lib_fileindex.h
@@ -53,7 +53,7 @@ struct got_fileindex_entry {
 #define GOT_FILEIDX_F_STAGE		0x00003000
 #define GOT_FILEIDX_F_EXTENDED		0x00004000
 #define GOT_FILEIDX_F_ASSUME_VALID	0x00008000
-#define GOT_FILEIDX_F_NOT_ON_DISK	0x20000000
+#define GOT_FILEIDX_F_NOT_FLUSHED	0x20000000
 
 	/*
 	 * UNIX-style path, relative to work tree root.