Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...
|
[SSI] openssi/kernel/mm swapfile.c,NONE,1.2.2.1: msg#00108
|
Subject: |
[SSI] openssi/kernel/mm swapfile.c,NONE,1.2.2.1 |
Update of /cvsroot/ssic-linux/openssi/kernel/mm
In directory sc8-pr-cvs1:/tmp/cvs-serv26509/openssi/kernel/mm
Added Files:
Tag: OPENSSI-RH
swapfile.c
Log Message:
M openssi/kernel/mm/swapfile.c
Fixed base panic that occurred when doing a swapoff of a device
that wasn't in use as a swap device.
--- NEW FILE: swapfile.c ---
/*
* linux/mm/swapfile.c
*
* Copyright (C) 1991, 1992, 1993, 1994 Linus Torvalds
* Swap reorganised 29.12.95, Stephen Tweedie
*/
#include <linux/slab.h>
#include <linux/smp_lock.h>
#include <linux/kernel_stat.h>
#include <linux/swap.h>
#include <linux/swapctl.h>
#include <linux/blkdev.h> /* for blk_size */
#include <linux/vmalloc.h>
#include <linux/pagemap.h>
#include <linux/shm.h>
#include <asm/pgtable.h>
[...1236 lines suppressed...]
if (!toff) /* first page is swap header */
toff++, i--;
*offset = toff;
swap_device_lock(swapdev);
do {
/* Don't read-ahead past the end of the swap area */
if (toff >= swapdev->max)
break;
/* Don't read in free or bad pages */
if (!swapdev->swap_map[toff])
break;
if (swapdev->swap_map[toff] == SWAP_MAP_BAD)
break;
toff++;
ret++;
} while (--i);
swap_device_unlock(swapdev);
return ret;
}
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
|
| |