[Devel] Re: [PATCH 08/10] Define get_sb_ref()

sukadev at linux.vnet.ibm.com sukadev at linux.vnet.ibm.com
Fri Sep 26 14:21:15 PDT 2008


Dave Hansen [dave at linux.vnet.ibm.com] wrote:
| On Fri, 2008-09-12 at 10:53 -0700, sukadev at us.ibm.com 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
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list