Btrfs: modify clean_io_failure and make it suit direct io
authorMiao Xie <miaox@cn.fujitsu.com>
Fri, 12 Sep 2014 10:44:01 +0000 (18:44 +0800)
committerChris Mason <clm@fb.com>
Wed, 17 Sep 2014 20:38:59 +0000 (13:38 -0700)
commit1203b6813ee84add8b4baa6d75e50ba85517e99c
treeb9799ad854dfe4f213564354e89a272fda7cdddb
parentffdd2018dd0bbfc0d9855ed811dba67201766a2d
Btrfs: modify clean_io_failure and make it suit direct io

We could not use clean_io_failure in the direct IO path because it got the
filesystem information from the page structure, but the page in the direct
IO bio didn't have the filesystem information in its structure. So we need
modify it and pass all the information it need by parameters.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/scrub.c