patch-2.4.19 linux-2.4.19/arch/m68k/atari/stram.c
Next file: linux-2.4.19/arch/m68k/atari/time.c
Previous file: linux-2.4.19/arch/m68k/atari/config.c
Back to the patch index
Back to the overall index
- Lines: 53
- Date:
Fri Aug 2 17:39:43 2002
- Orig file:
linux-2.4.18/arch/m68k/atari/stram.c
- Orig date:
Fri Feb 9 11:29:44 2001
diff -urN linux-2.4.18/arch/m68k/atari/stram.c linux-2.4.19/arch/m68k/atari/stram.c
@@ -236,8 +236,8 @@
static void do_stram_request(request_queue_t *);
static int stram_open( struct inode *inode, struct file *filp );
static int stram_release( struct inode *inode, struct file *filp );
-#endif
static void reserve_region(void *start, void *end);
+#endif
static BLOCK *add_region( void *addr, unsigned long size );
static BLOCK *find_region( void *addr );
static int remove_region( BLOCK *block );
@@ -296,7 +296,7 @@
max_swap_size =
(!MACH_IS_HADES &&
(N_PAGES(stram_end-stram_start)*MAX_STRAM_FRACTION_DENOM <=
- (high_memory>>PAGE_SHIFT)*MAX_STRAM_FRACTION_NOM)) ? 16*1024*1024 : 0;
+ ((unsigned long)high_memory>>PAGE_SHIFT)*MAX_STRAM_FRACTION_NOM)) ? 16*1024*1024 : 0;
DPRINTK( "atari_stram_reserve_pages: max_swap_size = %d\n", max_swap_size );
#endif
@@ -759,7 +759,7 @@
/* Get a page for the entry, using the existing
swap cache page if there is one. Otherwise,
get a clean page and read the swap into it. */
- page = read_swap_cache(entry);
+ page = read_swap_cache_async(entry);
if (!page) {
swap_free(entry);
return -ENOMEM;
@@ -768,7 +768,7 @@
for_each_task(p)
unswap_process(p->mm, entry, page);
read_unlock(&tasklist_lock);
- shm_unuse(entry, page);
+ shmem_unuse(entry, page);
/* Now get rid of the extra reference to the
temporary page we've been using. */
if (PageSwapCache(page))
@@ -1072,7 +1072,6 @@
return( 0 );
}
-#endif /* CONFIG_STRAM_SWAP */
/* ------------------------------------------------------------------------ */
@@ -1085,6 +1084,7 @@
reserve_bootmem (virt_to_phys(start), end - start);
}
+#endif /* CONFIG_STRAM_SWAP */
/* ------------------------------------------------------------------------ */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)