From: Christoph Hellwig <hch@infradead.org>
To: "Randy.Dunlap" <rddunlap@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] use seq_file for /proc/swaps
Date: Wed, 30 Oct 2002 16:29:24 +0000 [thread overview]
Message-ID: <20021030162924.A30082@infradead.org> (raw)
In-Reply-To: <Pine.LNX.4.33L2.0210292145270.16850-100000@dragon.pdx.osdl.net>; from rddunlap@osdl.org on Tue, Oct 29, 2002 at 10:12:59PM -0800
On Tue, Oct 29, 2002 at 10:12:59PM -0800, Randy.Dunlap wrote:
> Are you and/or Greg U. going to do a CONFIG_SWAP option?
Yes. It's already in -ac.
> I moved the proc_swaps_operations to swapfile.c like you asked.
> I like that part of this patch.
> But it makes more sense to me to move the create_seq_entry() call
> to mm/swap.c:: in its __init swap_setup() function
> (or add another __init function in swapfile.c to do this ?).
Despite it's name swap.c has absolutely nothing to do with
swapping :) So please add another initfunc to swapfile.c.
> That meant that I had to duplicate create_seq_entry() or
> export it. For now I have duplicated it, and that would make
> 3 copies of it in the kernel -- and that's bad IMO, so it would
> need to be exported (but I didn't do that for now).
Not sure whether that three lines of code are really worth exporting :)
> And there's the question of __init ordering: when will the __init
> function mm/swap.c::swap_setup(), calling create_seq_entry(),
> happen in relation to create_proc_entry() being ready to work?
create_proc_entry() works as soon as kmalloc() works, i.e. it's fine
for all initcalls.`
next prev parent reply other threads:[~2002-10-30 16:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-29 5:36 Randy.Dunlap
2002-10-29 12:13 ` Christoph Hellwig
2002-10-30 6:12 ` Randy.Dunlap
2002-10-30 16:29 ` Christoph Hellwig [this message]
2002-11-05 6:58 ` Randy.Dunlap
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=20021030162924.A30082@infradead.org \
--to=hch@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rddunlap@osdl.org \
/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
Powered by JetHome