diff options
author | Daniel Bristot de Oliveira <bristot@redhat.com> | 2016-07-01 19:44:36 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2016-07-15 15:52:20 -0400 |
commit | 752d596b394c62f081393bbf53dff2a2c244632e (patch) | |
tree | 1fefaf1b368c66ab29cc9d226e9356b6547dfd28 /fs/nfs/nfstrace.h | |
parent | a17167ce1110e576f7032b98deeb6ec800f39c7a (diff) |
tracing: Use __get_str() when manipulating strings
Use __get_str(str) rather than __get_dynamic_array(str) when
deadling with strings.
It is just a code cleanup, no changes on tracepoint ABI.
Link: http://lkml.kernel.org/r/ea260df91817411cca2a1f3db2abd88860094788.1467407618.git.bristot@redhat.com
Cc: Trond Myklebust <trond.myklebust@primarydata.com>
Cc: Anna Schumaker <anna.schumaker@netapp.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: linux-nfs@vger.kernel.org
Suggested-by: Steven Rostedt <rostedt@goodmis.org>
Reviewed-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Daniel Bristot de Oliveira <bristot@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'fs/nfs/nfstrace.h')
-rw-r--r-- | fs/nfs/nfstrace.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/nfstrace.h b/fs/nfs/nfstrace.h index 0b9e5cc9a747..31c7763b94d5 100644 --- a/fs/nfs/nfstrace.h +++ b/fs/nfs/nfstrace.h | |||
@@ -707,9 +707,9 @@ TRACE_EVENT(nfs_sillyrename_unlink, | |||
707 | __entry->dev = dir->i_sb->s_dev; | 707 | __entry->dev = dir->i_sb->s_dev; |
708 | __entry->dir = NFS_FILEID(dir); | 708 | __entry->dir = NFS_FILEID(dir); |
709 | __entry->error = error; | 709 | __entry->error = error; |
710 | memcpy(__get_dynamic_array(name), | 710 | memcpy(__get_str(name), |
711 | data->args.name.name, len); | 711 | data->args.name.name, len); |
712 | ((char *)__get_dynamic_array(name))[len] = 0; | 712 | __get_str(name)[len] = 0; |
713 | ), | 713 | ), |
714 | 714 | ||
715 | TP_printk( | 715 | TP_printk( |