Re: [patch 10/19] direct-to-BIO I/O for swapcache pages

From: Andreas Dilger (adilger@clusterfs.com)
Date: Mon Jun 17 2002 - 11:17:18 EST


On Jun 16, 2002 23:52 -0700, Andrew Morton wrote:
> This patch changes the swap I/O handling. The objectives are:
>
> At swapon time (for an S_ISBLK swapfile), we install a single swap extent
> which describes the entire device.
>
> + inode = sis->swap_file->f_dentry->d_inode;
> + if (S_ISBLK(inode->i_mode)) {
> + ret = add_swap_extent(sis, 0, sis->max, 0);
> + goto done;
> + }

I believe it is possible to have blocks marked bad in the swap header,
even for a block device, so this will try to use those bad blocks.

Cheers, Andreas

--
Andreas Dilger
http://www-mddsp.enel.ucalgary.ca/People/adilger/
http://sourceforge.net/projects/ext2resize/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jun 23 2002 - 22:00:13 EST