summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_trans.h
diff options
context:
space:
mode:
authorBrian Foster2018-08-01 16:20:32 +0200
committerDarrick J. Wong2018-08-03 08:05:13 +0200
commit82ff27bc52a88cb5cc400bfa64e210d3ec8dfebd (patch)
treeeab2a904953ffc246e955cf610f151cc8f5bf40b /fs/xfs/xfs_trans.h
parentxfs: add missing defer ijoins for held inodes (diff)
downloadkernel-qcow2-linux-82ff27bc52a88cb5cc400bfa64e210d3ec8dfebd.tar.gz
kernel-qcow2-linux-82ff27bc52a88cb5cc400bfa64e210d3ec8dfebd.tar.xz
kernel-qcow2-linux-82ff27bc52a88cb5cc400bfa64e210d3ec8dfebd.zip
xfs: automatic dfops buffer relogging
Buffers that are held across deferred operations are explicitly joined to the dfops structure to ensure appropriate relogging. While buffers are currently joined explicitly, we can detect the conditions that require relogging at dfops finish time by inspecting the transaction item list for held buffers. Replace the xfs_defer_bjoin() infrastructure with such detection and automatic relogging of held buffers. This eliminates the need for the per-dfops buffer list, replaced by an on-stack variant in xfs_defer_trans_roll(). Signed-off-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> 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_trans.h')
-rw-r--r--fs/xfs/xfs_trans.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/xfs/xfs_trans.h b/fs/xfs/xfs_trans.h
index 7e493221160e..581456c79197 100644
--- a/fs/xfs/xfs_trans.h
+++ b/fs/xfs/xfs_trans.h
@@ -100,7 +100,6 @@ struct xfs_defer_ops {
/* relog these with each roll */
struct xfs_inode *dop_inodes[XFS_DEFER_OPS_NR_INODES];
- struct xfs_buf *dop_bufs[XFS_DEFER_OPS_NR_BUFS];
};
/*