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)
commit1b94b5567e9c70ad3b24bd5e576a422246875c2a
tree0118d96c9baa6fadd41209e7232be23fc1517961
parentaf8e2d1df9848b39dd86b1e696bf8781d2020a88
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
This page took 0.025218 seconds and 5 git commands to generate.