From mboxrd@z Thu Jan 1 00:00:00 1970 From: sukadev-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org Subject: Re: [PATCH 08/10] Define get_sb_ref() Date: Fri, 26 Sep 2008 14:21:15 -0700 Message-ID: <20080926212115.GD31505@us.ibm.com> References: <20080912174845.GA17350@us.ibm.com> <20080912175308.GI17350@us.ibm.com> <1222286127.15523.66.camel@nimitz> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1222286127.15523.66.camel@nimitz> 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: Dave Hansen Cc: kyle-hoO6YkzgTuCM0SS3m2neIg@public.gmane.org, bastian-yyjItF7Rl6lg9hUCZPvPmw@public.gmane.org, ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org, hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org, containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org, alan-qBU/x9rampVanCEyBjwyrvXRex20P6io@public.gmane.org, xemul-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org List-Id: containers.vger.kernel.org Dave Hansen [dave-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org] wrote: | On Fri, 2008-09-12 at 10:53 -0700, sukadev-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org wrote: | > + * But for single-mount semantics, devpts cannot use get_sb_single(), | > + * because get_sb_single()/sget() find and use the super-block from | > + * the most recent mount of devpts. But that recent mount may be a | > + * 'newinstance' mount and get_sb_single() would pick the newinstance | > + * super-block instead of the initial super-block. | | Can't you just override the test() function to get what you want here? get_sb_single() does not take a test() parameter and so I would still need a get_sb_ref() or get_sb_special() interface right ? This special interface could call sget() with a custom-test function, to get the super-block. But in case of devpts, we already have the super-block. So we don't need to call sget(). We just need get a reference and remount. Suka