From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [RFC][PATCH 5/5] Merge code for single and multiple-instance mounts Date: Sun, 1 Feb 2009 17:38:07 +0100 Message-ID: <20090201163807.GI3416@lst.de> References: <20090129064259.GA23160@us.ibm.com> <20090129064753.GF23160@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20090129064753.GF23160-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Sukadev Bhattiprolu Cc: "David C. Hansen" , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org, Containers , Christoph Hellwig , Alan Cox List-Id: containers.vger.kernel.org On Wed, Jan 28, 2009 at 10:47:53PM -0800, Sukadev Bhattiprolu wrote: > > From: Sukadev Bhattiprolu > Date: Wed, 28 Jan 2009 19:11:15 -0800 > Subject: [RFC][PATCH 5/5] Merge code for single and multiple-instance mounts > > new_pts_mount() (including the get_sb_nodev()), shares a lot of code > with init_pts_mount(). The only difference between them is the 'test-super' > function passed into sget(). > > Move the shared code into a new, common function, do_pts_mount() and > remove new_pts_mount() and init_pts_mount() functions, I would even merge init_pts_mount into devpts_get_sb, otherwise looks good to me.