On Tue, Nov 03, 2015 at 07:03:00PM +0800, Zhao Lei wrote:
> list_for_each_entry_reverse() in current code can not output
> devices in sorted order, because the sequence are broken in
> btrfs_alloc_chunk().
> 
> We can use list_sort() instead.
> 
> Before patch:
>  # mkfs.btrfs -f /dev/vdd /dev/vde /dev/vdf
>  ...
>  Number of devices:  3
>  Devices:
>     ID        SIZE  PATH
>      3     2.60GiB  /dev/vdf
>      1     2.60GiB  /dev/vdd
>      2     2.60GiB  /dev/vde
> 
> After patch:
>  # mkfs.btrfs -f /dev/vdd /dev/vde /dev/vdf
>  ...
>  Number of devices:  3
>  Devices:
>     ID        SIZE  PATH
>      1     2.60GiB  /dev/vdd
>      2     2.60GiB  /dev/vde
>      3     2.60GiB  /dev/vdf
> 
> Signed-off-by: Zhao Lei <zhao...@cn.fujitsu.com>

Nice, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to