Re: vfs: where is get_sb_single()?

From: Bob Liu
Date: Wed May 25 2011 - 09:22:44 EST


On Wed, May 25, 2011 at 5:33 PM, Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
> On Wed, May 25, 2011 at 03:19:58PM +0800, Bob Liu wrote:
>> Hi, folks
>>
>> I found that fs/super.c doesn't have get_sb_single() anymore.
>>
>> But I can't find the git log which delete that function.
>> Some out of tree file systems depends on that function.
>
> The same out of tree filesystems depend on ->get_sb() being there...
> See Documentation/filesystems/porting:
>
> [mandatory]
> Â Â Â Â->get_sb() is gone. ÂSwitch to use of ->mount(). ÂTypically it's just
> a matter of switching from calling get_sb_... to mount_... and changing the
> function type. ÂIf you were doing it manually, just switch from setting ->mnt_root
> to some pointer to returning that pointer. ÂOn errors return ERR_PTR(...).
>
> IOW, odds are good that you'll need to do something like what had been
> done in commit 152a08366671080f27b32e0c411ad620c5f88b57 - not terribly
> complicated.
>

Got it, Thanks a lot for your help.

I made a mistake during browser linux-next.git in kernel.org.

--
Regards,
--Bob
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/