GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
flush.c
Go to the documentation of this file.
1 
15 #include <grass/segment.h>
16 
17 
32 int segment_flush(SEGMENT * SEG)
33 {
34  int i;
35 
36  for (i = 0; i < SEG->nseg; i++)
37  if (SEG->scb[i].n >= 0 && SEG->scb[i].dirty)
38  segment_pageout(SEG, i);
39 
40  return 0;
41 }
int segment_flush(SEGMENT *SEG)
Flush pending updates to disk.
Definition: flush.c:32
int segment_pageout(SEGMENT *SEG, int i)
Pages segment to disk.
Definition: pageout.c:36