Skip to content

Commit

Permalink
Btrfs: mnt_drop_write in ioctl_trans_end
Browse files Browse the repository at this point in the history
Add missing mnt_drop_write to match the mnt_want_write in
btrfs_ioctl_trans_start.

Signed-off-by: Sage Weil <sage@newdream.net>
  • Loading branch information
Sage Weil authored and Chris Mason committed Dec 11, 2008
1 parent 0403e47 commit cfc8ea8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1059,6 +1059,8 @@ long btrfs_ioctl_trans_end(struct file *file)
root->fs_info->open_ioctl_trans--;
mutex_unlock(&root->fs_info->trans_mutex);

mnt_drop_write(file->f_path.mnt);

out:
return ret;
}
Expand Down

0 comments on commit cfc8ea8

Please sign in to comment.