diff options
author | Carlos Maiolino <cmaiolino@redhat.com> | 2016-05-18 01:05:33 (GMT) |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-05-18 01:05:33 (GMT) |
commit | df3093907ccc718459c54c99da29dd774af41186 (patch) | |
tree | 339b0e68135d4523dd1ebac6886158cf93ae1d6d /fs/xfs/xfs_buf.h | |
parent | ffd40ef697dfd3e06f44b1bb5fea93079de8c77d (diff) | |
download | linux-df3093907ccc718459c54c99da29dd774af41186.tar.xz |
xfs: add configurable error support to metadata buffers
With the error configuration handle for async metadata write errors
in place, we can now add initial support to the IO error processing
in xfs_buf_iodone_error().
Add an infrastructure function to look up the configuration handle,
and rearrange the error handling to prepare the way for different
error handling conigurations to be used.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_buf.h')
-rw-r--r-- | fs/xfs/xfs_buf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_buf.h b/fs/xfs/xfs_buf.h index 4eb89bd..adef116 100644 --- a/fs/xfs/xfs_buf.h +++ b/fs/xfs/xfs_buf.h @@ -183,6 +183,7 @@ typedef struct xfs_buf { unsigned int b_page_count; /* size of page array */ unsigned int b_offset; /* page offset in first page */ int b_error; /* error code on I/O */ + int b_last_error; /* previous async I/O error */ const struct xfs_buf_ops *b_ops; #ifdef XFS_BUF_LOCK_TRACKING |