From: Coywolf Qi Hunt <qiyong@fc-cn.com>
To: linux-kernel@vger.kernel.org
Cc: akpm@osdl.org
Subject: [patch] next_mnt() cleanup
Date: Fri, 10 Jun 2005 15:23:44 +0800 [thread overview]
Message-ID: <20050610072344.GA6629@localhost.localdomain> (raw)
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;
next reply other threads:[~2005-06-10 7:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-10 7:23 Coywolf Qi Hunt [this message]
2005-06-10 7:38 ` [patch] next_mnt() cleanup Coywolf Qi Hunt
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=20050610072344.GA6629@localhost.localdomain \
--to=qiyong@fc-cn.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.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