Andreas Dilger wrote:
>
> 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.
Well, this establishes the page index -> sector mapping for those
blocks. But the actual block allocator will not hand out the
SWP_MAP_BAD blocks in the first place.
-
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:14 EST