projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c57b88
)
xfs: move xfs_iext_insert tracepoint to report useful information
author
Darrick J. Wong
<
[email protected]
>
Mon, 11 Dec 2017 02:03:54 +0000
(18:03 -0800)
committer
Darrick J. Wong
<
[email protected]
>
Thu, 14 Dec 2017 17:20:11 +0000
(09:20 -0800)
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 <
[email protected]
>
Reviewed-by: Christoph Hellwig <
[email protected]
>
fs/xfs/libxfs/xfs_iext_tree.c
patch
|
blob
|
history
diff --git
a/fs/xfs/libxfs/xfs_iext_tree.c
b/fs/xfs/libxfs/xfs_iext_tree.c
index 89bf16b4d9377293fa842c48f2b9b637f83c62c2..b0f31791c7e6137c0b7e46c35000e3c76e145ba1 100644
(file)
--- a/
fs/xfs/libxfs/xfs_iext_tree.c
+++ b/
fs/xfs/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);
}