On 16-Jun-2017 11:44 AM, "Shrikant Giridhar" <shrikantgiridhar@xxxxxxxxx> wrote:
> I just had a quick look at mount_bdev() code for Linux v3.15, mount_bdev()I'm sorry I should have been clearer. I was referring to the documentation
> can return only root dentry or error.
mount() where it says that the call can return something other than the root
dentry.
I have not looked at the doc.
More specifically, I don't understand how the what's the purpose of the if
condition checking for s_root in mount_bdev(). Apologies if this is a trivial
question.
If s_root is set it means the superblock is already filled up so call fill_super() only if s_root is NULL meaning superblock is not filled yet.
Tracking the calls all the way down didn't seem to make it clearer
and I couldn't find specific documentation about the interface.
I have the 4.12-rc5 kernel.
> Also please include the kernel version to which you are referring.
---
Shrikant
- Rohan
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies