login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
March
»
19
Re: [patch 2/6] vfs: pnode cleanup
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Al Viro <viro@...>
To: Miklos Szeredi <miklos@...>
Cc: <akpm@...>, <linuxram@...>, <linux-fsdevel@...>, <linux-kernel@...>
Subject:
Re: [patch 2/6] vfs: pnode cleanup
Date: Wednesday, March 19, 2008 - 7:16 am
On Thu, Mar 13, 2008 at 10:26:43PM +0100, Miklos Szeredi wrote:
quoted text
> Move set_mnt_shared from pnode.h to pnode.c. Change > CLEAR_MNT_SHARED() to clear_mnt_shared() function, and move to > pnode.c.
I don't see why these two are a cleanup, actually.
quoted text
> @@ -89,20 +100,18 @@ static int do_make_slave(struct vfsmount > list_for_each_entry(slave_mnt, &mnt->mnt_slave_list, mnt_slave) > slave_mnt->mnt_master = master; > list_move(&mnt->mnt_slave, &master->mnt_slave_list); > - list_splice(&mnt->mnt_slave_list, master->mnt_slave_list.prev); > - INIT_LIST_HEAD(&mnt->mnt_slave_list); > + list_splice_init(&mnt->mnt_slave_list, > + master->mnt_slave_list.prev);
Umm... OK.
quoted text
> } else { > - struct list_head *p = &mnt->mnt_slave_list; > - while (!list_empty(p)) { > - slave_mnt = list_first_entry(p, > + while (!list_empty(&mnt->mnt_slave_list)) { > + slave_mnt = list_first_entry(&mnt->mnt_slave_list,
How is that better?
quoted text
> - INIT_LIST_HEAD(&mnt->mnt_slave_list);
Fine by me. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[patch 2/6] vfs: pnode cleanup
, Miklos Szeredi
, (Thu Mar 13, 5:26 pm)
Re: [patch 2/6] vfs: pnode cleanup
, Al Viro
, (Wed Mar 19, 7:16 am)
Re: [patch 2/6] vfs: pnode cleanup
, Miklos Szeredi
, (Wed Mar 19, 7:48 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Pavel Emelianov
[RFC][PATCH 4/7] RSS accounting hooks over the code
Rafael J. Wysocki
2.6.26-rc6-git2: Reported regressions from 2.6.25
Adrian Bunk
[2/2] 2.6.21-rc7: known regressions
Greg KH
Re: [malware-list] [RFC 0/5] [TALPA] Intro to a linux interface for on access scan...
linux-netdev
:
Jan Engelhardt
Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
git
:
Colocation donated by:
Who's online
There are currently
4 users
and
1002 guests
online.
Online users
ComanVasile
Emily5551
avantiwineref
Jeremy
Syndicate