Re: [PATCH 1/3] btrfs: Move btrfs_raid_array to public

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 15, 2015 at 09:08:06PM +0800, Zhao Lei wrote:
> 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.
> 
> Signed-off-by: Zhao Lei <zhaolei@xxxxxxxxxxxxxx>

Reviewed-by: David Sterba <dsterba@xxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux