diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-07-12 01:52:14 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:08:43 +0300 |
commit | 8f3b41ab4f39f87712ed57e0443642d7bcabd1ff (patch) | |
tree | c41656a9bd017e19d57bf58643cd86dc94e1300d /fs/bcachefs/movinggc.c | |
parent | 63b214e75b1c941d3fc81da5b7fc4aa997e40873 (diff) | |
download | linux-8f3b41ab4f39f87712ed57e0443642d7bcabd1ff.tar.xz |
bcachefs: Don't restrict copygc writes to the same device
This no longer makes any sense, since copygc is now one thread per
filesystem, not per device, with a single write point.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/movinggc.c')
-rw-r--r-- | fs/bcachefs/movinggc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/movinggc.c b/fs/bcachefs/movinggc.c index c33b58dc5c50..3c87e4b8da33 100644 --- a/fs/bcachefs/movinggc.c +++ b/fs/bcachefs/movinggc.c @@ -105,7 +105,7 @@ static enum data_cmd copygc_pred(struct bch_fs *c, void *arg, return DATA_SKIP; /* XXX: use io_opts for this inode */ - data_opts->target = dev_to_target(dev_idx); + data_opts->target = io_opts->background_target; data_opts->btree_insert_flags = BTREE_INSERT_USE_RESERVE; data_opts->rewrite_dev = dev_idx; return DATA_REWRITE; |