diff options
author | Chris Mason <clm@fb.com> | 2016-01-20 03:21:30 +0100 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2016-01-20 03:21:30 +0100 |
commit | 326f784281fbbdcd91bb401b2a3e32132c0f5c72 (patch) | |
tree | ebee8e2cf51dd901d8c31b88e1a93b1655e6abf4 /fs/btrfs/ioctl.c | |
parent | Merge branch 'misc-cleanups-4.5' of git://git.kernel.org/pub/scm/linux/kernel... (diff) | |
parent | btrfs: initialize the seq counter in struct btrfs_device (diff) | |
download | linux-326f784281fbbdcd91bb401b2a3e32132c0f5c72.tar.xz linux-326f784281fbbdcd91bb401b2a3e32132c0f5c72.zip |
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 */ |