mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-08 14:23:19 +00:00
afs: Add directory reload tracepoint
Add a tracepoint (afs_reload_dir) to indicate when a directory is being reloaded. Signed-off-by: David Howells <dhowells@redhat.com>
This commit is contained in:
parent
cdfb26b40d
commit
99987c5600
@ -309,6 +309,7 @@ static struct afs_read *afs_read_dir(struct afs_vnode *dvnode, struct key *key)
|
|||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
if (!test_bit(AFS_VNODE_DIR_VALID, &dvnode->flags)) {
|
if (!test_bit(AFS_VNODE_DIR_VALID, &dvnode->flags)) {
|
||||||
|
trace_afs_reload_dir(dvnode);
|
||||||
ret = afs_fetch_data(dvnode, key, req);
|
ret = afs_fetch_data(dvnode, key, req);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto error_unlock;
|
goto error_unlock;
|
||||||
|
@ -947,6 +947,23 @@ TRACE_EVENT(afs_flock_op,
|
|||||||
__entry->from, __entry->len, __entry->flags)
|
__entry->from, __entry->len, __entry->flags)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
TRACE_EVENT(afs_reload_dir,
|
||||||
|
TP_PROTO(struct afs_vnode *vnode),
|
||||||
|
|
||||||
|
TP_ARGS(vnode),
|
||||||
|
|
||||||
|
TP_STRUCT__entry(
|
||||||
|
__field_struct(struct afs_fid, fid )
|
||||||
|
),
|
||||||
|
|
||||||
|
TP_fast_assign(
|
||||||
|
__entry->fid = vnode->fid;
|
||||||
|
),
|
||||||
|
|
||||||
|
TP_printk("%llx:%llx:%x",
|
||||||
|
__entry->fid.vid, __entry->fid.vnode, __entry->fid.unique)
|
||||||
|
);
|
||||||
|
|
||||||
#endif /* _TRACE_AFS_H */
|
#endif /* _TRACE_AFS_H */
|
||||||
|
|
||||||
/* This part must be outside protection */
|
/* This part must be outside protection */
|
||||||
|
Loading…
Reference in New Issue
Block a user