#include <linux/config.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/shm.h>
#include <linux/mman.h>
#include <linux/locks.h>
#include <linux/pagemap.h>
#include <linux/swap.h>
#include <linux/smp_lock.h>
#include <linux/blkdev.h>
#include <linux/file.h>
#include <linux/swapctl.h>
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/iobuf.h>
#include <linux/compiler.h>
#include <asm/pgalloc.h>
#include <asm/uaccess.h>
#include <asm/mman.h>
#include <linux/highmem.h>
#include <fcbdef.h>
#include <ipldef.h>
#include <phddef.h>
#include <rdedef.h>
#include <misc_routines.h>
Go to the source code of this file.
Defines | |
#define | vm_area_struct _rde |
Functions | |
void fastcall | set_page_dirty (struct page *page) |
void | invalidate_inode_pages (struct inode *inode) |
void | truncate_inode_pages (struct address_space *mapping, loff_t lstart) |
void | invalidate_inode_pages2 (struct address_space *mapping) |
int | generic_buffer_fdatasync (struct _fcb *inode, unsigned long start_idx, unsigned long end_idx) |
int | block_write_full_page2 () |
int | filemap_fdatasync (struct address_space *mapping) |
int | filemap_fdatawait (struct address_space *mapping) |
int | file_read_actor (read_descriptor_t *desc, struct page *page, unsigned long offset, unsigned long size) |
asmlinkage ssize_t | sys_sendfile (int out_fd, int in_fd, off_t *offset, size_t count) |
asmlinkage ssize_t | sys_readahead (int fd, loff_t offset, size_t count) |
int | filemap_sync (struct vm_area_struct *vma, unsigned long address, size_t size, unsigned int flags) |
int | generic_file_mmap (struct file *file, struct vm_area_struct *vma) |
asmlinkage long | sys_msync (unsigned long start, size_t len, int flags) |
asmlinkage long | sys_madvise (unsigned long start, size_t len, int behavior) |
asmlinkage long | sys_mincore (unsigned long start, size_t len, unsigned char *vec) |
void | remove_suid (struct _fcb *inode) |
ssize_t | generic_file_write (struct file *file, const char *buf, size_t count, loff_t *ppos) |
void __init | page_cache_init (unsigned long mempages) |
#define vm_area_struct _rde |
Definition at line 869 of file vmsfilemap.c.
int block_write_full_page2 | ( | ) |
filemap_fdatasync - walk the list of dirty pages of the given address space and writepage() all of them.
: address space structure to write
int file_read_actor | ( | read_descriptor_t * | desc, | |
struct page * | page, | |||
unsigned long | offset, | |||
unsigned long | size | |||
) |
Definition at line 453 of file vmsfilemap.c.
int filemap_fdatasync | ( | struct address_space * | mapping | ) |
int filemap_fdatawait | ( | struct address_space * | mapping | ) |
filemap_fdatawait - walk the list of locked pages of the given address space and wait for all of them.
: address space structure to wait for
Definition at line 137 of file vmsfilemap.c.
Referenced by sys_fdatasync(), and sys_fsync().
int filemap_sync | ( | struct vm_area_struct * | vma, | |
unsigned long | address, | |||
size_t | size, | |||
unsigned int | flags | |||
) |
Definition at line 835 of file vmsfilemap.c.
int generic_buffer_fdatasync | ( | struct _fcb * | inode, | |
unsigned long | start_idx, | |||
unsigned long | end_idx | |||
) |
Definition at line 107 of file vmsfilemap.c.
int generic_file_mmap | ( | struct file * | file, | |
struct vm_area_struct * | vma | |||
) |
Definition at line 867 of file vmsfilemap.c.
ssize_t generic_file_write | ( | struct file * | file, | |
const char * | buf, | |||
size_t | count, | |||
loff_t * | ppos | |||
) |
S_ISBLK(inode->i_mode) &&
S_ISBLK(inode->i_mode)
S_ISBLK(inode->i_mode)
Definition at line 1534 of file vmsfilemap.c.
References block_prepare_write2(), _fcb::fcb_l_filesize, generic_commit_write2(), remove_suid(), and vmtruncate().
void invalidate_inode_pages | ( | struct inode * | inode | ) |
invalidate_inode_pages - Invalidate all the unlocked pages of one inode : the inode which pages we want to invalidate
This function only removes the unlocked pages, if you want to remove all the pages of one inode, you must call truncate_inode_pages.
Definition at line 77 of file vmsfilemap.c.
void invalidate_inode_pages2 | ( | struct address_space * | mapping | ) |
invalidate_inode_pages2 - Clear all the dirty bits around if it can't free the pages because they're mapped. : the address_space which pages we want to invalidate
Definition at line 99 of file vmsfilemap.c.
void __init page_cache_init | ( | unsigned long | mempages | ) |
Definition at line 1793 of file vmsfilemap.c.
void remove_suid | ( | struct _fcb * | inode | ) | [inline] |
void fastcall set_page_dirty | ( | struct page * | page | ) |
asmlinkage long sys_madvise | ( | unsigned long | start, | |
size_t | len, | |||
int | behavior | |||
) |
asmlinkage long sys_mincore | ( | unsigned long | start, | |
size_t | len, | |||
unsigned char * | vec | |||
) |
asmlinkage long sys_msync | ( | unsigned long | start, | |
size_t | len, | |||
int | flags | |||
) |
asmlinkage ssize_t sys_readahead | ( | int | fd, | |
loff_t | offset, | |||
size_t | count | |||
) |
Definition at line 709 of file vmsfilemap.c.
asmlinkage ssize_t sys_sendfile | ( | int | out_fd, | |
int | in_fd, | |||
off_t * | offset, | |||
size_t | count | |||
) |
Definition at line 598 of file vmsfilemap.c.
void truncate_inode_pages | ( | struct address_space * | mapping, | |
loff_t | lstart | |||
) |
truncate_inode_pages - truncate *all* the pages from an offset : mapping to truncate : offset from with to truncate
Truncate the page cache at a set offset, removing the pages that are beyond that offset (and zeroing out partial pages). If any page is locked we wait for it to become unlocked.
Definition at line 90 of file vmsfilemap.c.
Referenced by vmtruncate().