summaryrefslogtreecommitdiffstats
path: root/lib/devres.c
diff options
context:
space:
mode:
authorZhao Lei <zhaolei@cn.fujitsu.com>2015-09-15 15:08:06 +0200
committerDavid Sterba <dsterba@suse.com>2015-10-21 18:28:48 +0200
commitaf902047508d3619499cbbc2f7c4c5e16428b2e3 (patch)
treed9be3362b1840eb3d1abdeb7b3165e11d836322d /lib/devres.c
parentbtrfs: use a single if() statement for one outcome in get_block_rsv() (diff)
downloadlinux-af902047508d3619499cbbc2f7c4c5e16428b2e3.tar.xz
linux-af902047508d3619499cbbc2f7c4c5e16428b2e3.zip
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>
Diffstat (limited to 'lib/devres.c')
0 files changed, 0 insertions, 0 deletions