patch-2.1.118 linux/arch/m68k/atari/stram.c
Next file: linux/arch/m68k/bvme6000/rtc.c
Previous file: linux/arch/i386/mm/init.c
Back to the patch index
Back to the overall index
- Lines: 91
- Date:
Mon Aug 24 13:44:38 1998
- Orig file:
v2.1.117/linux/arch/m68k/atari/stram.c
- Orig date:
Mon Aug 3 12:45:44 1998
diff -u --recursive --new-file v2.1.117/linux/arch/m68k/atari/stram.c linux/arch/m68k/atari/stram.c
@@ -218,31 +218,31 @@
#ifdef CONFIG_STRAM_SWAP
static int swap_init( unsigned long start_mem, unsigned long swap_data );
static inline int unswap_pte( struct vm_area_struct * vma, unsigned long
- address, pte_t *dir, unsigned long entry,
- unsigned long page, int isswap );
+ address, pte_t *dir, unsigned long entry,
+ unsigned long page, int isswap );
static inline int unswap_pmd( struct vm_area_struct * vma, pmd_t *dir,
- unsigned long address, unsigned long size,
- unsigned long offset, unsigned long entry,
- unsigned long page, int isswap );
+ unsigned long address, unsigned long size,
+ unsigned long offset, unsigned long entry,
+ unsigned long page, int isswap );
static inline int unswap_pgd( struct vm_area_struct * vma, pgd_t *dir,
- unsigned long address, unsigned long size,
- unsigned long entry, unsigned long page, int
- isswap );
+ unsigned long address, unsigned long size,
+ unsigned long entry, unsigned long page, int
+ isswap );
static int unswap_vma( struct vm_area_struct * vma, pgd_t *pgdir, unsigned
- long entry, unsigned long page, int isswap );
+ long entry, unsigned long page, int isswap );
static int unswap_process( struct mm_struct * mm, unsigned long entry,
- unsigned long page, int isswap );
+ unsigned long page, int isswap );
static int unswap_by_move( unsigned char *map, unsigned long max, unsigned
- long start, unsigned long n_pages );
+ long start, unsigned long n_pages );
static int unswap_by_read( unsigned char *map, unsigned long max, unsigned
- long start, unsigned long n_pages );
+ long start, unsigned long n_pages );
static void *get_stram_region( unsigned long n_pages );
static void free_stram_region( unsigned long offset, unsigned long n_pages
- );
+ );
static int in_some_region( unsigned long addr );
static unsigned long find_free_region( unsigned long n_pages, unsigned long
- *total_free, unsigned long
- *region_free );
+ *total_free, unsigned long
+ *region_free );
static void do_stram_request( void );
static int stram_open( struct inode *inode, struct file *filp );
static int stram_release( struct inode *inode, struct file *filp );
@@ -1249,16 +1249,17 @@
static struct file_operations stram_fops = {
- NULL, /* lseek - default */
- block_read, /* read - general block-dev read */
- block_write, /* write - general block-dev write */
- NULL, /* readdir - bad */
- NULL, /* select */
- NULL, /* ioctl */
- NULL, /* mmap */
- stram_open, /* open */
- stram_release, /* release */
- block_fsync /* fsync */
+ NULL, /* lseek - default */
+ block_read, /* read - general block-dev read */
+ block_write, /* write - general block-dev write */
+ NULL, /* readdir - bad */
+ NULL, /* select */
+ NULL, /* ioctl */
+ NULL, /* mmap */
+ stram_open, /* open */
+ NULL, /* flush */
+ stram_release, /* release */
+ block_fsync /* fsync */
};
__initfunc(int stram_device_init(void))
@@ -1269,12 +1270,12 @@
return( -ENXIO );
if (!max_swap_size)
- /* swapping not enabled */
+ /* swapping not enabled */
return( -ENXIO );
if (register_blkdev( STRAM_MAJOR, "stram", &stram_fops)) {
- printk( KERN_ERR "stram: Unable to get major %d\n", STRAM_MAJOR );
- return( -ENXIO );
+ printk( KERN_ERR "stram: Unable to get major %d\n", STRAM_MAJOR );
+ return( -ENXIO );
}
blk_dev[STRAM_MAJOR].request_fn = do_stram_request;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov