From: maximilian attems Subject: [patch] use list_for_each() in fs/namespace.c Date: Wed, 10 Sep 2003 16:33:08 +0200 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <20030910143308.GD24711@mail.sternwelten.at> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="q9KOos5vDmpwPx9o" Cc: linux-fsdevel@vger.kernel.org, matthew@wil.cx Return-path: Received: from M981P012.adsl.highway.telekom.at ([62.47.154.140]:36993 "EHLO stallburg.dyndns.org") by vger.kernel.org with ESMTP id S264802AbTIJOdQ (ORCPT ); Wed, 10 Sep 2003 10:33:16 -0400 To: kj Content-Disposition: inline List-Id: linux-fsdevel.vger.kernel.org --q9KOos5vDmpwPx9o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Use list_for_each() where applicable From: Domen Puncer =20 - for (list =3D ymf_devs.next; list !=3D &ymf_devs; list =3D list->next) { + list_for_each(list, &ymf_devs) { pure cosmetic change, defined as a preprocessor macro in: include/linux/list.h please apply maks --- linux-2.6.0-test5/fs/namespace.c Mon Sep 8 21:50:09 2003 +++ linux/fs/namespace.c Wed Sep 10 12:13:24 2003 @@ -443,7 +443,7 @@ q->mnt_mountpoint =3D mnt->mnt_mountpoint; =20 p =3D mnt; - for (h =3D mnt->mnt_mounts.next; h !=3D &mnt->mnt_mounts; h =3D h->next) { + list_for_each(h, &mnt->mnt_mounts) { r =3D list_entry(h, struct vfsmount, mnt_child); if (!lives_below_in_same_fs(r->mnt_mountpoint, dentry)) continue; --q9KOos5vDmpwPx9o Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE/XzYk6//kSTNjoX0RAuAYAJ4m8q0Fkp0AMiwNHfT3es8tgrcPfgCePAW5 WqtcP3XnQIAsLGSTXe4MUC0= =45jv -----END PGP SIGNATURE----- --q9KOos5vDmpwPx9o--