OSDN Git Service

Btrfs: search parity device wisely
authorLiu Bo <bo.li.liu@oracle.com>
Thu, 3 Aug 2017 19:53:31 +0000 (13:53 -0600)
committerDavid Sterba <dsterba@suse.com>
Mon, 30 Oct 2017 11:27:55 +0000 (12:27 +0100)
commit9cd3a7eb8507deb3c75077739a07ccccad0dc991
tree9f785c4e5f0083f9461fcdb607bd00b346bb8d9b
parentee87cf5ed9fe8e41d057f5f5c7f49c18b6d3f94c
Btrfs: search parity device wisely

After mapping block with BTRFS_MAP_WRITE, parities have been sorted to
the end position, so this search can start from the first parity
stripe.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ copied changelog as a comment ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/raid56.c