/[hurd]/hurd/isofs/pager.c
ViewVC logotype

Diff of /hurd/isofs/pager.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by marcus, Sun Jan 7 17:06:26 2001 UTC revision 1.6.2.1 by ams, Thu Aug 25 18:34:18 2005 UTC
# Line 1  Line 1 
1  /*  /*
2     Copyright (C) 1997, 1999 Free Software Foundation, Inc.     Copyright (C) 1997, 1999, 2005 Free Software Foundation, Inc.
3     Written by Thomas Bushnell, n/BSG.     Written by Thomas Bushnell, n/BSG.
4    
5     This file is part of the GNU Hurd.     This file is part of the GNU Hurd.
# Line 94  pager_unlock_page (struct user_pager_inf Line 94  pager_unlock_page (struct user_pager_inf
94    return EROFS;    return EROFS;
95  }  }
96    
97    void
98    pager_notify_evict (struct user_pager_info *pager,
99                        vm_offset_t page)
100    {
101      assert (!"unrequested notification on eviction");
102    }
103    
104  /* Tell how big the file is. */  /* Tell how big the file is. */
105  error_t  error_t
106  pager_report_extent (struct user_pager_info *pager,  pager_report_extent (struct user_pager_info *pager,
# Line 137  create_disk_pager (void) Line 144  create_disk_pager (void)
144    upi->type = DISK;    upi->type = DISK;
145    upi->np = 0;    upi->np = 0;
146    pager_bucket = ports_create_bucket ();    pager_bucket = ports_create_bucket ();
147    diskfs_start_disk_pager (upi, pager_bucket, 1, store->size, &disk_image);    diskfs_start_disk_pager (upi, pager_bucket, 1, 0, store->size, &disk_image);
148    upi->p = diskfs_disk_pager;    upi->p = diskfs_disk_pager;
149  }  }
150    
# Line 168  diskfs_get_filemap (struct node *np, vm_ Line 175  diskfs_get_filemap (struct node *np, vm_
175          upi->type = FILE_DATA;          upi->type = FILE_DATA;
176          upi->np = np;          upi->np = np;
177          diskfs_nref_light (np);          diskfs_nref_light (np);
178          upi->p = pager_create (upi, pager_bucket, 1, MEMORY_OBJECT_COPY_DELAY);          upi->p = pager_create (upi, pager_bucket, 1,
179                                   MEMORY_OBJECT_COPY_DELAY, 0);
180          if (upi->p == 0)          if (upi->p == 0)
181            {            {
182              diskfs_nrele_light (np);              diskfs_nrele_light (np);

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.6.2.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26