diff options
author | Jeff Mahoney <jeffm@suse.com> | 2017-02-16 00:28:29 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-17 14:03:56 +0300 |
commit | 5e00f1939f6e994123589c6e3d307de02b43c914 (patch) | |
tree | a90a8280230e6a7d7c42dc12ad17ee05eb4ffa98 /fs/btrfs/scrub.c | |
parent | 0c9ab349c2058736594ce82531673a1b4645420d (diff) | |
download | linux-5e00f1939f6e994123589c6e3d307de02b43c914.tar.xz |
btrfs: convert btrfs_inc_block_group_ro to accept fs_info
btrfs_inc_block_group_ro is either passed the extent root or the dev
root, but it doesn't do anything with the dev tree. Let's convert
to passing an fs_info and using the extent root.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/scrub.c')
-rw-r--r-- | fs/btrfs/scrub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index f7dffacf61fa..ff9a11c39f5e 100644 --- a/fs/btrfs/scrub.c +++ b/fs/btrfs/scrub.c @@ -3582,7 +3582,7 @@ int scrub_enumerate_chunks(struct scrub_ctx *sctx, * -> btrfs_scrub_pause() */ scrub_pause_on(fs_info); - ret = btrfs_inc_block_group_ro(root, cache); + ret = btrfs_inc_block_group_ro(fs_info, cache); if (!ret && is_dev_replace) { /* * If we are doing a device replace wait for any tasks |