aboutsummaryrefslogtreecommitdiff
path: root/ufs/pager.c
Commit message (Collapse)AuthorAgeFilesLines
* Reverted changes related to io_map_segment.Roland McGrath1999-09-131-3/+1
|
* 1999-09-08 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-09-081-1/+3
| | | | | | | | | | | | | | * dir.c (diskfs_get_directs): Initialize `err' to shut gcc up. 1999-09-07 Thomas Bushnell, BSG <tb@mit.edu> * dir.c (diskfs_lookup_hard): Pass additional parameter to diskfs_get_filemap. (diskfs_dirempty): Likewise. * sizes.c (diskfs_truncate): Likewise. (block_extended): Likewise. (diskfs_grow): Likewise. * pager.c (diskfs_get_filemap): Accept additional parameter.
* 1999-09-04 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-09-041-8/+9
| | | | | | | | | * pager.c (find_address): If !ISREAD, then don't return errors for access past NP->allocsize, and clear *ADDR and *DISKSIZE. These can happen through harmless races against truncate. (pager_write_page): Don't print annoying messages for writes to unallocated disk. These can happen through harmless races against truncate, and so we should not pester the console with them.
* 1999-07-09 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-07-111-2/+3
| | | | | | * dir.c (diskfs_get_directs): Use mmap instead of vm_allocate. * hyper.c (get_hypermetadata): Likewise. * pager.c (pager_read_page): Likewise.
* Wed Aug 20 14:34:24 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1997-08-201-0/+7
| | | | | | | | | | | | | * dir.c (diskfs_lookup_hard): Cope with error return from diskfs_get_filemap. * sizes.c (diskfs_grow): Likewise. * dir.c (diskfs_dirempty): Cope (poorly) with error return from diskfs_get_filemap. * sizes.c (diskfs_truncate): Likewise. (block_extended): Likewise. * pager.c (diskfs_get_filemap): If pager_create fails, return error to caller.
* (pager_read_page, pager_write_page, pager_unlock_page):Miles Bader1997-06-201-5/+11
| | | | | Adjust device addresses for possible differences between DEV_BSIZE & device block size.
* (pager_report_extent):Miles Bader1996-09-231-20/+37
| | | | | | | | | | | | | | | Use fields in STORE instead of DISKFS_DEVICE_* variables. (pager_read_page, pager_write_page, pager_unlock_page): Use store_{read,write} instead of diskfs_device_{read,write}_sync. (create_disk_pager): Create PAGER_BUCKET. Use diskfs_start_disk_pager instead of disk_pager_setup. (thread_function): Function removed. (disk_image): New variable. (create_disk_pager, diskfs_shutdown_pager, diskfs_sync_everything): Use DISKFS_DISK_PAGER instead of DISK_PAGER.
* (diskfs_shutdown_pager): Don't shutdown DISKPAGER ever, just sync itMichael I. Bushnell1996-06-241-2/+2
| | | | instead.
* (diskfs_get_filemap): Initialize UPI->allow_unlocked_pagein andMichael I. Bushnell1996-05-031-9/+62
| | | | | | | | UPI->unlocked_pagein_length. (unlocked_pagein_lock): New variable. (find_address): New parameter `isread'; all callers changed. If ISREAD and we are in the unlocked pagein region, don't attempt to acquire NP->dn->allocptrlock.
* (pager_unlock_page): Use read/write_disk_entry when reading/writingMichael I. Bushnell1996-04-231-5/+10
| | | | on-disk inode fields and indirect blocks.
* (diskfs_max_user_pager_prot) [add_pager_max_prot]:Michael I. Bushnell1996-03-181-2/+1
| | | | (a == b) ? 1 : 0 ====> (a == b).
* (diskfs_shutdown_pager, diskfs_sync_everything): Use `disk_pager' in placeRoland McGrath1996-01-061-71/+65
| | | | | of `diskpager->p'. (create_disk_pager): Rewritten using disk_pager_setup.
* (pager_unlock_page): When allocating block in direct array, clear itMichael I. Bushnell1996-01-011-1/+3
| | | | synchronously just like we do when it goes in the indirect array.
* (diskfs_max_user_pager_prot): Return what we discovered, instead of 1.Miles Bader1995-10-211-1/+1
|
* (diskfs_get_filemap): Add PROT parameter, & use it.Miles Bader1995-10-191-27/+107
| | | | | | (diskfs_pager_users): Split out block_caching & enable_caching. (block_caching, enable_caching, diskfs_max_user_pager_prot): New functions. (flush_node_pager): New function.
* (pager_unlock_page, pager_write_page, pager_read_page):Miles Bader1995-10-131-4/+5
| | | | | Use diskfs_device_{read,write}_synce instead of dev_{read,write}_sync. (pager_report_extent): Calculate the pager size.
* (diskfs_pager_users): Ignore the disk pager when seeing if there are anyMiles Bader1995-09-061-3/+2
| | | | active pagers.
* (diskfs_get_filemap): Drop initial reference created by pager_create.Michael I. Bushnell1995-07-211-19/+26
| | | | | (pager_clear_user_data): Only clear UPI->np->dn->fileinfo if it still points to us.
* (diskfs_get_filemap): Free initial reference created by pager_create.Michael I. Bushnell1995-07-211-1/+9
|
* (thread_function): Don't have any global timeout here; we don't use itMichael I. Bushnell1995-07-171-4/+2
| | | | anyhow.
* (diskfs_pager_users/enable_cache): Fix typo.Michael I. Bushnell1995-06-271-2/+3
| | | | Include <unistd.h>.
* (diskfs_pager_users): New function.Michael I. Bushnell1995-06-271-0/+67
|
* (thread_function): Move thread_function to be non-local, of course,Michael I. Bushnell1995-06-221-11/+10
| | | | because it needs to live even after create_disk_pager returns.
* (diskfs_sync_everything, diskfs_shutdown_pager): Conform to prototype.Michael I. Bushnell1995-06-211-2/+4
|
* (diskfs_shutdown_pager): Typos.Michael I. Bushnell1995-06-211-2/+2
|
* (pager_clear_user_data): Don't maintain pager linked list.Michael I. Bushnell1995-06-211-54/+19
| | | | | | | | | (diskfs_get_filemap): Don't maintain pager linked list. (pager_dropweak): New function. (pager_traverse): Delete function. (diskfs_shutdown_pager): Use ports_bucket_iterate instead of pager_traverse. (diskfs_sync_everything): Use ports_bucket_iterate instead of pager_traverse.
* (drop_pager_softrefs): Use ports reference calls directly instead ofMichael I. Bushnell1995-06-211-7/+7
| | | | | | | pager wrappers. (allow_pager_softrefs): Likewise. (pager_traverse): Likewise. (diskfs_file_update): Fix typo.
* (create_disk_pager): Fork off service thread for pager ports.Michael I. Bushnell1995-06-211-0/+13
|
* (create_disk_pager): Initialize pager_bucket.Michael I. Bushnell1995-06-211-0/+2
|
* (pager_bucket): New variable.Michael I. Bushnell1995-06-211-4/+8
| | | | | | | (create_disk_pager): Provide pager_bucket in call to pager_create. (diskfs_get_filemap): Likewise. (diskfs_file_update): Use ports reference calls directly instead of pager wrappers.
* (pager_clear_user_data): Doc fix.Michael I. Bushnell1995-05-151-0/+1
|
* (pager_clear_user_data): Don't die when called on the disk pager.Miles Bader1995-05-081-10/+12
|
* (pager_clear_user_data): Acquire pagerlistlock around modifications toMichael I. Bushnell1995-05-021-1/+3
| | | | UPI->next/prevp list structure.
* entered into RCSRoland McGrath1994-11-081-1/+1
|
* Formerly pager.c.~41~Michael I. Bushnell1994-10-251-0/+2
|
* Formerly pager.c.~40~Hurd Maintainers1994-10-041-0/+11
|
* Formerly pager.c.~39~Michael I. Bushnell1994-10-041-11/+56
|
* Formerly pager.c.~38~Michael I. Bushnell1994-09-271-11/+11
|
* Formerly pager.c.~35~Michael I. Bushnell1994-09-231-19/+26
|
* Formerly pager.c.~34~Michael I. Bushnell1994-09-231-71/+24
|
* Formerly pager.c.~33~Michael I. Bushnell1994-09-231-456/+139
|
* Formerly pager.c.~32~Michael I. Bushnell1994-09-221-208/+99
|
* Formerly pager.c.~31~Michael I. Bushnell1994-09-221-11/+17
|
* Formerly pager.c.~30~Michael I. Bushnell1994-09-211-0/+7
|
* Formerly pager.c.~29~Michael I. Bushnell1994-09-211-1/+17
|
* Formerly pager.c.~28~Michael I. Bushnell1994-09-211-2/+5
|
* Formerly pager.c.~27~Michael I. Bushnell1994-09-201-9/+18
|
* Initial revisionMichael I. Bushnell1994-07-191-0/+937