]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Use direct way to determine raid56 write/recover mode
authorZhao Lei <zhaolei@cn.fujitsu.com>
Tue, 15 Dec 2015 10:18:09 +0000 (18:18 +0800)
committerChris Mason <clm@fb.com>
Wed, 20 Jan 2016 02:43:45 +0000 (18:43 -0800)
commit5a68ac4e51a7af7a7e8a94ceb0a7bfd3bc786965
tree76b4b001d9c01a6bd8376fd851266bad6256f250
parentcf0b809d82036020169cbe34200aeb6e858b1df1
btrfs: Use direct way to determine raid56 write/recover mode

Old code used bbio->raid_map to determine whether in raid56
write/recover operation, because we didn't't have bbio->map_type.

Now we have direct way for this condition, rid of using
the function-relative data, and make the code more readable.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/volumes.c