summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_log_recover.c
diff options
context:
space:
mode:
authorDave Chinner2014-10-02 01:04:22 +0200
committerDave Chinner2014-10-02 01:04:22 +0200
commite8aaba9a783c8e5d2c58ebe69650ea31b91bb745 (patch)
tree92d2b9057e9a4122634c356e957bb7c89f951003 /fs/xfs/xfs_log_recover.c
parentxfs: synchronous buffer IO needs a reference (diff)
downloadkernel-qcow2-linux-e8aaba9a783c8e5d2c58ebe69650ea31b91bb745.tar.gz
kernel-qcow2-linux-e8aaba9a783c8e5d2c58ebe69650ea31b91bb745.tar.xz
kernel-qcow2-linux-e8aaba9a783c8e5d2c58ebe69650ea31b91bb745.zip
xfs: xfs_buf_ioend and xfs_buf_iodone_work duplicate functionality
We do some work in xfs_buf_ioend, and some work in xfs_buf_iodone_work, but much of that functionality is the same. This work can all be done in a single function, leaving xfs_buf_iodone just a wrapper to determine if we should execute it by workqueue or directly. hence rename xfs_buf_iodone_work to xfs_buf_ioend(), and add a new xfs_buf_ioend_async() for places that need async processing. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_log_recover.c')
-rw-r--r--fs/xfs/xfs_log_recover.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c
index 1fd5787add99..4ba19bf7da1f 100644
--- a/fs/xfs/xfs_log_recover.c
+++ b/fs/xfs/xfs_log_recover.c
@@ -383,7 +383,7 @@ xlog_recover_iodone(
SHUTDOWN_META_IO_ERROR);
}
bp->b_iodone = NULL;
- xfs_buf_ioend(bp, 0);
+ xfs_buf_ioend(bp);
}
/*