diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2018-01-03 13:42:09 -0600 |
---|---|---|
committer | Eric Sandeen <sandeen@redhat.com> | 2018-01-03 13:42:09 -0600 |
commit | 6428e6c79cebc6b83c40ca18ffe7e0b58aa048ce (patch) | |
tree | b69595155e7938fc9c902fa222aa7a17e6365f17 | |
parent | db2cf1d2ffc41b36abeb7603c8342f18067cef30 (diff) | |
download | xfsprogs-dev-6428e6c79cebc6b83c40ca18ffe7e0b58aa048ce.tar.gz |
xfs: move xfs_iext_insert tracepoint to report useful information
Source kernel commit: c54854a437a447a6bb1dcb11f60dd01cef3fa597
Move the tracepoint in xfs_iext_insert to after the point where we've
inserted the extent because otherwise we report stale extent data in
the ftrace output.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
-rw-r--r-- | libxfs/xfs_iext_tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libxfs/xfs_iext_tree.c b/libxfs/xfs_iext_tree.c index 3fcda5fa21..321db1858b 100644 --- a/libxfs/xfs_iext_tree.c +++ b/libxfs/xfs_iext_tree.c @@ -632,8 +632,6 @@ xfs_iext_insert( struct xfs_iext_leaf *new = NULL; int nr_entries, i; - trace_xfs_iext_insert(ip, cur, state, _RET_IP_); - if (ifp->if_height == 0) xfs_iext_alloc_root(ifp, cur); else if (ifp->if_height == 1) @@ -661,6 +659,8 @@ xfs_iext_insert( xfs_iext_set(cur_rec(cur), irec); ifp->if_bytes += sizeof(struct xfs_iext_rec); + trace_xfs_iext_insert(ip, cur, state, _RET_IP_); + if (new) xfs_iext_insert_node(ifp, xfs_iext_leaf_key(new, 0), new, 2); } |