Loading fs/btrfs/super.c +19 −15 Original line number Diff line number Diff line Loading @@ -451,6 +451,9 @@ static int btrfs_get_sb(struct file_system_type *fs_type, int flags, s->s_flags |= MS_ACTIVE; } if (!strcmp(subvol_name, ".")) root = dget(s->s_root); else { mutex_lock(&s->s_root->d_inode->i_mutex); root = lookup_one_len(subvol_name, s->s_root, strlen(subvol_name)); mutex_unlock(&s->s_root->d_inode->i_mutex); Loading @@ -467,6 +470,7 @@ static int btrfs_get_sb(struct file_system_type *fs_type, int flags, error = -ENXIO; goto error; } } mnt->mnt_sb = s; mnt->mnt_root = root; Loading Loading
fs/btrfs/super.c +19 −15 Original line number Diff line number Diff line Loading @@ -451,6 +451,9 @@ static int btrfs_get_sb(struct file_system_type *fs_type, int flags, s->s_flags |= MS_ACTIVE; } if (!strcmp(subvol_name, ".")) root = dget(s->s_root); else { mutex_lock(&s->s_root->d_inode->i_mutex); root = lookup_one_len(subvol_name, s->s_root, strlen(subvol_name)); mutex_unlock(&s->s_root->d_inode->i_mutex); Loading @@ -467,6 +470,7 @@ static int btrfs_get_sb(struct file_system_type *fs_type, int flags, error = -ENXIO; goto error; } } mnt->mnt_sb = s; mnt->mnt_root = root; Loading