btrfs: add framework to handle device flush error as a volume
authorAnand Jain <anand.jain@oracle.com>
Fri, 5 May 2017 23:17:54 +0000 (07:17 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2017 16:25:58 +0000 (18:25 +0200)
commit401b41e5a85a635fd9888ba8969c5006a5dbd399
treeb1346f834dba4de59f816e49b72c931cdd351ce9
parent6b349dfe80ded8ef06cd67d6b0a795c1fea82cbe
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>
fs/btrfs/disk-io.c
fs/btrfs/volumes.h