diff options
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index a1d36e62179c..354cc3f232bb 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -1573,8 +1573,8 @@ int btrfs_init_fs_root(struct btrfs_root *root) | |||
1573 | root->subv_writers = writers; | 1573 | root->subv_writers = writers; |
1574 | 1574 | ||
1575 | btrfs_init_free_ino_ctl(root); | 1575 | btrfs_init_free_ino_ctl(root); |
1576 | spin_lock_init(&root->cache_lock); | 1576 | spin_lock_init(&root->ino_cache_lock); |
1577 | init_waitqueue_head(&root->cache_wait); | 1577 | init_waitqueue_head(&root->ino_cache_wait); |
1578 | 1578 | ||
1579 | ret = get_anon_bdev(&root->anon_dev); | 1579 | ret = get_anon_bdev(&root->anon_dev); |
1580 | if (ret) | 1580 | if (ret) |
@@ -3532,7 +3532,7 @@ void btrfs_drop_and_free_fs_root(struct btrfs_fs_info *fs_info, | |||
3532 | 3532 | ||
3533 | static void free_fs_root(struct btrfs_root *root) | 3533 | static void free_fs_root(struct btrfs_root *root) |
3534 | { | 3534 | { |
3535 | iput(root->cache_inode); | 3535 | iput(root->ino_cache_inode); |
3536 | WARN_ON(!RB_EMPTY_ROOT(&root->inode_tree)); | 3536 | WARN_ON(!RB_EMPTY_ROOT(&root->inode_tree)); |
3537 | btrfs_free_block_rsv(root, root->orphan_block_rsv); | 3537 | btrfs_free_block_rsv(root, root->orphan_block_rsv); |
3538 | root->orphan_block_rsv = NULL; | 3538 | root->orphan_block_rsv = NULL; |