]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs, raid56: use a variant to record the operation type
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 6 Nov 2014 08:14:21 +0000 (16:14 +0800)
committerMiao Xie <miaox@cn.fujitsu.com>
Wed, 3 Dec 2014 02:18:45 +0000 (10:18 +0800)
commitb81e255e4ed2c528736fc48a4b482c379cb63bff
tree0118d96c9baa6fadd41209e7232be23fc1517961
parentf19f006a578281e2603d17863eef987fe74aab56
Btrfs, raid56: use a variant to record the operation type

We will introduce new operation type later, if we still use integer
variant as bool variant to record the operation type, we would add new
variant and increase the size of raid bio structure. It is not good,
by this patch, we define different number for different operation,
and we can just use a variant to record the operation type.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
fs/btrfs/raid56.c