patch-1.3.38 linux/mm/filemap.c
Next file: linux/mm/memory.c
Previous file: linux/kernel/sched.c
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Mon Nov 6 16:05:07 1995
- Orig file:
v1.3.37/linux/mm/filemap.c
- Orig date:
Mon Oct 23 18:02:20 1995
diff -u --recursive --new-file v1.3.37/linux/mm/filemap.c linux/mm/filemap.c
@@ -279,7 +279,7 @@
}
/*
- * This handles partial area unmaps..
+ * This handles (potentially partial) area unmaps..
*/
static void filemap_unmap(struct vm_area_struct *vma, unsigned long start, size_t len)
{
@@ -287,23 +287,15 @@
}
/*
- * This handles complete area closes..
- */
-static void filemap_close(struct vm_area_struct * vma)
-{
- filemap_sync(vma, vma->vm_start, vma->vm_end - vma->vm_start, MS_ASYNC);
-}
-
-/*
* Shared mappings need to be able to do the right thing at
* close/unmap/sync. They will also use the private file as
* backing-store for swapping..
*/
static struct vm_operations_struct file_shared_mmap = {
- NULL, /* open */
- filemap_close, /* close */
- filemap_unmap, /* unmap */
- NULL, /* protect */
+ NULL, /* no special open */
+ NULL, /* no special close */
+ filemap_unmap, /* unmap - we need to sync the pages */
+ NULL, /* no special protect */
filemap_sync, /* sync */
NULL, /* advise */
filemap_nopage, /* nopage */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this