diff options
author | Goldwyn Rodrigues <rgoldwyn@suse.de> | 2016-11-10 09:01:46 -0600 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-11-23 10:49:31 +0100 |
commit | becd520b5cc5a9cbb8ca70250c8ebf09bae28eb0 (patch) | |
tree | c3f93885ecaf0583ac4407ce97ecc39677db2f42 /task-utils.h | |
parent | d6ab2fdca495b98e497f21f277dadba834e2199b (diff) |
btrfs-progs: return best entry, if it is the first one
The find_most_right_entry() tends to miss on the best entry if it is the
first one on the list and there are only two entries in the list. So,
we assign both prev and best to entry.
To do this, the selection process (rather the rejection) has to be
performed earlier to skip on broken==count.
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'task-utils.h')
0 files changed, 0 insertions, 0 deletions