diff options
| author | Wang Xiaoguang <[email protected]> | 2016-06-20 01:18:52 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2016-10-24 16:20:29 +0000 |
| commit | 9d1032cc49a8a1065e79ee323de66bcb4fdbd535 (patch) | |
| tree | 949523d20856471ba5d48aaca9cf26c70638b59a /fs/btrfs/async-thread.c | |
| parent | Btrfs: remove some no-op casts (diff) | |
| download | kernel-9d1032cc49a8a1065e79ee323de66bcb4fdbd535.tar.gz kernel-9d1032cc49a8a1065e79ee323de66bcb4fdbd535.zip | |
btrfs: fix WARNING in btrfs_select_ref_head()
This issue was found when testing in-band dedupe enospc behaviour,
sometimes run_one_delayed_ref() may fail for enospc reason, then
__btrfs_run_delayed_refs()will return, but forget to add num_heads_read
back, which will trigger "WARN_ON(delayed_refs->num_heads_ready == 0)" in
btrfs_select_ref_head().
Signed-off-by: Wang Xiaoguang <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/async-thread.c')
0 files changed, 0 insertions, 0 deletions
