diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2014-06-19 10:42:51 +0800 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-06-19 14:20:54 -0700 |
commit | ced96edc48ba455b0982c3aa64d3cc3bf2d0816a (patch) | |
tree | 44967160e52bb4b5cd82d1ad6308702ce77e24af /fs/btrfs/extent_map.h | |
parent | e570fd27f2c5d7eac3876bccf99e9838d7f911a3 (diff) | |
download | op-kernel-dev-ced96edc48ba455b0982c3aa64d3cc3bf2d0816a.zip op-kernel-dev-ced96edc48ba455b0982c3aa64d3cc3bf2d0816a.tar.gz |
btrfs: Skip scrubbing removed chunks to avoid -ENOENT.
When run scrub with balance, sometimes -ENOENT will be returned, since
in scrub_enumerate_chunks() will search dev_extent in *COMMIT_ROOT*, but
btrfs_lookup_block_group() will search block group in *MEMORY*, so if a
chunk is removed but not committed, -ENOENT will be returned.
However, there is no need to stop scrubbing since other chunks may be
scrubbed without problem.
So this patch changes the behavior to skip removed chunks and continue
to scrub the rest.
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/extent_map.h')
0 files changed, 0 insertions, 0 deletions