mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 00:21:17 +00:00
Btrfs: Various small fixes.
This trivial patch contains two locking fixes and a off by one fix. --- Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
3de9d6b649
commit
b48652c101
5 changed files with 11 additions and 10 deletions
|
@ -449,7 +449,9 @@ static int btrfs_get_sb(struct file_system_type *fs_type, int flags,
|
|||
s->s_flags |= MS_ACTIVE;
|
||||
}
|
||||
|
||||
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);
|
||||
if (IS_ERR(root)) {
|
||||
up_write(&s->s_umount);
|
||||
deactivate_super(s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue