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

Diff of /hurd/ufs/pager.c

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

revision 1.48 by roland, Mon Sep 13 06:35:07 1999 UTC revision 1.48.2.1 by ams, Thu Aug 25 18:34:17 2005 UTC
# Line 1  Line 1 
1  /* Pager for ufs  /* Pager for ufs
2     Copyright (C) 1994, 1995, 1996, 1997, 1999 Free Software Foundation     Copyright (C) 1994,1995,1996,1997,1999,2005 Free Software Foundation Inc.
3    
4     This program is free software; you can redistribute it and/or     This program is free software; you can redistribute it and/or
5     modify it under the terms of the GNU General Public License as     modify it under the terms of the GNU General Public License as
# Line 425  pager_unlock_page (struct user_pager_inf Line 425  pager_unlock_page (struct user_pager_inf
425    return err;    return err;
426  }  }
427    
428    void
429    pager_notify_evict (struct user_pager_info *pager,
430                        vm_offset_t page)
431    {
432      assert (!"unrequested notification on eviction");
433    }
434    
435  /* Implement the pager_report_extent callback from the pager library.  See  /* Implement the pager_report_extent callback from the pager library.  See
436     <hurd/pager.h> for the interface description. */     <hurd/pager.h> for the interface description. */
437  inline error_t  inline error_t
# Line 477  create_disk_pager (void) Line 484  create_disk_pager (void)
484    upi->type = DISK;    upi->type = DISK;
485    upi->np = 0;    upi->np = 0;
486    pager_bucket = ports_create_bucket ();    pager_bucket = ports_create_bucket ();
487    diskfs_start_disk_pager (upi, pager_bucket, MAY_CACHE, store->size,    diskfs_start_disk_pager (upi, pager_bucket, MAY_CACHE, 0, store->size,
488                             &disk_image);                             &disk_image);
489    upi->p = diskfs_disk_pager;    upi->p = diskfs_disk_pager;
490  }  }
# Line 570  diskfs_get_filemap (struct node *np, vm_ Line 577  diskfs_get_filemap (struct node *np, vm_
577          upi->unlocked_pagein_length = 0;          upi->unlocked_pagein_length = 0;
578          diskfs_nref_light (np);          diskfs_nref_light (np);
579          upi->p = pager_create (upi, pager_bucket,          upi->p = pager_create (upi, pager_bucket,
580                                 MAY_CACHE, MEMORY_OBJECT_COPY_DELAY);                                 MAY_CACHE, MEMORY_OBJECT_COPY_DELAY, 0);
581          if (upi->p == 0)          if (upi->p == 0)
582            {            {
583              diskfs_nrele_light (np);              diskfs_nrele_light (np);

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.48.2.1

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