Searched hist:af902047508d3619499cbbc2f7c4c5e16428b2e3 (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/fs/btrfs/ |
H A D | volumes.h | diff af902047508d3619499cbbc2f7c4c5e16428b2e3 Tue Sep 15 08:08:06 CDT 2015 Zhao Lei <zhaolei@cn.fujitsu.com> btrfs: Move btrfs_raid_array to public
This array is used to record attributes of each raid type, make it public, and many functions will benifit with this array.
For example, num_tolerated_disk_barrier_failures(), we can avoid complex conditions in this function, and get raid attribute simply by accessing above array.
It can also make code logic simple, reduce duplication code, and increase maintainability.
Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
|
H A D | volumes.c | diff af902047508d3619499cbbc2f7c4c5e16428b2e3 Tue Sep 15 08:08:06 CDT 2015 Zhao Lei <zhaolei@cn.fujitsu.com> btrfs: Move btrfs_raid_array to public
This array is used to record attributes of each raid type, make it public, and many functions will benifit with this array.
For example, num_tolerated_disk_barrier_failures(), we can avoid complex conditions in this function, and get raid attribute simply by accessing above array.
It can also make code logic simple, reduce duplication code, and increase maintainability.
Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
|