summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_buf_item.c
diff options
context:
space:
mode:
authorDave Chinner <david@fromorbit.com>2020-06-29 23:48:46 +0200
committerDarrick J. Wong <darrick.wong@oracle.com>2020-07-06 19:46:58 +0200
commit0c7e5afbea9962bc65c54337c30559bf913a97d6 (patch)
treec4c1f8faeb60687ab3d8a70467bf90437e0b66a7 /fs/xfs/xfs_buf_item.c
parentxfs: mark inode buffers in cache (diff)
downloadlinux-0c7e5afbea9962bc65c54337c30559bf913a97d6.tar.xz
linux-0c7e5afbea9962bc65c54337c30559bf913a97d6.zip
xfs: mark dquot buffers in cache
dquot buffers always have write IO callbacks, so by marking them directly we can avoid needing to attach ->b_iodone functions to them. This avoids an indirect call, and makes future modifications much simpler. This is largely a rearrangement of the code at this point - no IO completion functionality changes at this point, just how the code is run is modified. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_buf_item.c')
-rw-r--r--fs/xfs/xfs_buf_item.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/xfs/xfs_buf_item.c b/fs/xfs/xfs_buf_item.c
index 8659cf4282a6..a42cdf9ccc47 100644
--- a/fs/xfs/xfs_buf_item.c
+++ b/fs/xfs/xfs_buf_item.c
@@ -1210,6 +1210,16 @@ xfs_buf_inode_iodone(
xfs_buf_ioend_finish(bp);
}
+/*
+ * Dquot buffer iodone callback function.
+ */
+void
+xfs_buf_dquot_iodone(
+ struct xfs_buf *bp)
+{
+ xfs_buf_run_callbacks(bp);
+ xfs_buf_ioend_finish(bp);
+}
/*
* This is the iodone() function for buffers which have been