diff options
author | Chris Mason <clm@fb.com> | 2016-01-19 18:21:30 -0800 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2016-01-19 18:21:30 -0800 |
commit | 326f784281fbbdcd91bb401b2a3e32132c0f5c72 (patch) | |
tree | ebee8e2cf51dd901d8c31b88e1a93b1655e6abf4 /fs/btrfs/ioctl.c | |
parent | acc308556c812485462b6b43843c3f64530dd843 (diff) | |
parent | 546bed631203344611f42b2af1d224d2eedb4e6b (diff) | |
download | linux-next-326f784281fbbdcd91bb401b2a3e32132c0f5c72.tar.gz |
Merge branch 'misc-for-4.5' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux into for-linus-4.5
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index e392dd67f0ba..83c9ad3f2621 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -568,6 +568,10 @@ static noinline int create_subvol(struct inode *dir, goto fail; } + mutex_lock(&new_root->objectid_mutex); + new_root->highest_objectid = new_dirid; + mutex_unlock(&new_root->objectid_mutex); + /* * insert the directory item */ |