aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.h
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2017-05-06 07:17:54 +0800
committerDavid Sterba <dsterba@suse.com>2017-06-19 18:25:58 +0200
commit401b41e5a85a635fd9888ba8969c5006a5dbd399 (patch)
treeb1346f834dba4de59f816e49b72c931cdd351ce9 /fs/btrfs/volumes.h
parentBtrfs: remove obsolete FIXMEs in qgroup ioctls (diff)
downloadlinux-dev-401b41e5a85a635fd9888ba8969c5006a5dbd399.tar.xz
linux-dev-401b41e5a85a635fd9888ba8969c5006a5dbd399.zip
btrfs: add framework to handle device flush error as a volume
This adds comments to the flush error handling part of the code, and hopes to maintain the same logic with a framework which can be used to handle the errors at the volume level. Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.h')
-rw-r--r--fs/btrfs/volumes.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h
index c7d0fbc915ca..094521729df1 100644
--- a/fs/btrfs/volumes.h
+++ b/fs/btrfs/volumes.h
@@ -74,6 +74,7 @@ struct btrfs_device {
int missing;
int can_discard;
int is_tgtdev_for_dev_replace;
+ int last_flush_error;
#ifdef __BTRFS_NEED_DEVICE_DATA_ORDERED
seqcount_t data_seqcount;