]> 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)
commitcdfd8ff72a11fd3cbf22e6d563aa164ebdd722ef
tree0118d96c9baa6fadd41209e7232be23fc1517961
parentc6f4106e15b5ccc1e4fae4d9edd502eeec04d933
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