From: Andrew Morton <akpm@zip.com.au>
To: Andreas Dilger <adilger@clusterfs.com>
Cc: Linus Torvalds <torvalds@transmeta.com>,
lkml <linux-kernel@vger.kernel.org>,
Hugh Dickins <hugh@veritas.com>
Subject: Re: [patch 10/19] direct-to-BIO I/O for swapcache pages
Date: Mon, 17 Jun 2002 11:42:51 -0700 [thread overview]
Message-ID: <3D0E2DAB.B3D0EA@zip.com.au> (raw)
In-Reply-To: 20020617161718.GD22427@clusterfs.com
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.
prev parent reply other threads:[~2002-06-17 18:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-17 6:52 [patch 10/19] direct-to-BIO I/O for swapcache pages Andrew Morton
2002-06-17 7:13 ` Andrew Morton
2002-06-17 16:17 ` Andreas Dilger
2002-06-17 18:42 ` Andrew Morton [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D0E2DAB.B3D0EA@zip.com.au \
--to=akpm@zip.com.au \
--cc=adilger@clusterfs.com \
--cc=hugh@veritas.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox