• Omar Sandoval's avatar
    Btrfs: unify subvol= and subvolid= mounting · 05dbe683
    Omar Sandoval authored
    Currently, mounting a subvolume with subvolid= takes a different code
    path than mounting with subvol=. This isn't really a big deal except for
    the fact that mounts done with subvolid= or the default subvolume don't
    have a dentry that's connected to the dentry tree like in the subvol=
    case. To unify the code paths, when given subvolid= or using the default
    subvolume ID, translate it into a subvolume name by walking
    ROOT_BACKREFs in the root tree and INODE_REFs in the filesystem trees.
    Reviewed-by: default avatarDavid Sterba <dsterba@suse.cz>
    Signed-off-by: default avatarOmar Sandoval <osandov@osandov.com>
    Signed-off-by: default avatarChris Mason <clm@fb.com>
    05dbe683
super.c 59.3 KB