aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/async-thread.c
diff options
context:
space:
mode:
authorIlya Dryomov <[email protected]>2013-09-01 15:56:44 +0000
committerChris Mason <[email protected]>2013-09-21 14:58:55 +0000
commit55e50e458e760f4d0c183978dcc20b07a7f6e20e (patch)
treeae6a83a83d3104f93a94b0db8a098a2c497895d5 /fs/btrfs/async-thread.c
parentBtrfs: fixup error handling in btrfs_reloc_cow (diff)
downloadkernel-55e50e458e760f4d0c183978dcc20b07a7f6e20e.tar.gz
kernel-55e50e458e760f4d0c183978dcc20b07a7f6e20e.zip
Btrfs: do not add replace target to the alloc_list
If replace was suspended by the umount, replace target device is added to the fs_devices->alloc_list during a later mount. This is obviously wrong. ->is_tgtdev_for_dev_replace is supposed to guard against that, but ->is_tgtdev_for_dev_replace is (and can only ever be) initialized *after* everything is opened and fs_devices lists are populated. Fix this by checking the devid instead: for replace targets it's always equal to BTRFS_DEV_REPLACE_DEVID. Cc: Stefan Behrens <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]> Reviewed-by: Stefan Behrens <[email protected]> Signed-off-by: Josef Bacik <[email protected]> Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'fs/btrfs/async-thread.c')
0 files changed, 0 insertions, 0 deletions