From: Coywolf Qi Hunt <coywolf@gmail.com>
To: Coywolf Qi Hunt <qiyong@fc-cn.com>
Cc: linux-kernel@vger.kernel.org, akpm@osdl.org
Subject: Re: [patch] next_mnt() cleanup
Date: Fri, 10 Jun 2005 15:38:48 +0800 [thread overview]
Message-ID: <2cd57c90050610003831a4bfa2@mail.gmail.com> (raw)
In-Reply-To: <20050610072344.GA6629@localhost.localdomain>
Hi,
Sorry, this is insane, forget it.
On 6/10/05, Coywolf Qi Hunt <qiyong@fc-cn.com> wrote:
> hello,
>
> This is an obvious cleanup to next_mnt() by making use of list_empty().
>
>
> Signed-off-by: Coywolf Qi Hunt <coywolf@lovecn.org>
>
> --- linux-2.6.12-rc5-mm2/fs/namespace.c 2005-06-06 09:24:44.000000000 +0800
> +++ linux-2.6.12-rc5-mm2-cy/fs/namespace.c 2005-06-10 14:56:47.000000000 +0800
> @@ -133,8 +133,7 @@ static void attach_mnt(struct vfsmount *
>
> static struct vfsmount *next_mnt(struct vfsmount *p, struct vfsmount *root)
> {
> - struct list_head *next = p->mnt_mounts.next;
> - if (next == &p->mnt_mounts) {
> + if (list_empty(&p->mnt_mounts)) {
> while (1) {
> if (p == root)
> return NULL;
--
Coywolf Qi Hunt
http://ahbl.org/~coywolf/
prev parent reply other threads:[~2005-06-10 7:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-10 7:23 [patch] next_mnt() cleanup Coywolf Qi Hunt
2005-06-10 7:38 ` Coywolf Qi Hunt [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=2cd57c90050610003831a4bfa2@mail.gmail.com \
--to=coywolf@gmail.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=qiyong@fc-cn.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