aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace/events
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2015-03-17 18:25:59 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2015-04-15 15:06:57 -0400
commit2b0143b5c986be1ce8408b3aadc4709e0a94429d (patch)
tree98b1dee70f3d5d9ac9309f4638e41864ddcd0952 /include/trace/events
parentce0b16ddf18df35026164fda4a642ef10c01f442 (diff)
VFS: normal filesystems (and lustre): d_inode() annotations
that's the bulk of filesystem drivers dealing with inodes of their own Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/trace/events')
-rw-r--r--include/trace/events/btrfs.h4
-rw-r--r--include/trace/events/ext3.h16
-rw-r--r--include/trace/events/ext4.h16
3 files changed, 18 insertions, 18 deletions
diff --git a/include/trace/events/btrfs.h b/include/trace/events/btrfs.h
index 1faecea101f3..9134bba9f218 100644
--- a/include/trace/events/btrfs.h
+++ b/include/trace/events/btrfs.h
@@ -407,10 +407,10 @@ TRACE_EVENT(btrfs_sync_file,
407 407
408 TP_fast_assign( 408 TP_fast_assign(
409 struct dentry *dentry = file->f_path.dentry; 409 struct dentry *dentry = file->f_path.dentry;
410 struct inode *inode = dentry->d_inode; 410 struct inode *inode = d_inode(dentry);
411 411
412 __entry->ino = inode->i_ino; 412 __entry->ino = inode->i_ino;
413 __entry->parent = dentry->d_parent->d_inode->i_ino; 413 __entry->parent = d_inode(dentry->d_parent)->i_ino;
414 __entry->datasync = datasync; 414 __entry->datasync = datasync;
415 __entry->root_objectid = 415 __entry->root_objectid =
416 BTRFS_I(inode)->root->root_key.objectid; 416 BTRFS_I(inode)->root->root_key.objectid;
diff --git a/include/trace/events/ext3.h b/include/trace/events/ext3.h
index 6797b9de90ed..4a633258cab6 100644
--- a/include/trace/events/ext3.h
+++ b/include/trace/events/ext3.h
@@ -439,10 +439,10 @@ TRACE_EVENT(ext3_sync_file_enter,
439 TP_fast_assign( 439 TP_fast_assign(
440 struct dentry *dentry = file->f_path.dentry; 440 struct dentry *dentry = file->f_path.dentry;
441 441
442 __entry->dev = dentry->d_inode->i_sb->s_dev; 442 __entry->dev = d_inode(dentry)->i_sb->s_dev;
443 __entry->ino = dentry->d_inode->i_ino; 443 __entry->ino = d_inode(dentry)->i_ino;
444 __entry->datasync = datasync; 444 __entry->datasync = datasync;
445 __entry->parent = dentry->d_parent->d_inode->i_ino; 445 __entry->parent = d_inode(dentry->d_parent)->i_ino;
446 ), 446 ),
447 447
448 TP_printk("dev %d,%d ino %lu parent %ld datasync %d ", 448 TP_printk("dev %d,%d ino %lu parent %ld datasync %d ",
@@ -710,9 +710,9 @@ TRACE_EVENT(ext3_unlink_enter,
710 710
711 TP_fast_assign( 711 TP_fast_assign(
712 __entry->parent = parent->i_ino; 712 __entry->parent = parent->i_ino;
713 __entry->ino = dentry->d_inode->i_ino; 713 __entry->ino = d_inode(dentry)->i_ino;
714 __entry->size = dentry->d_inode->i_size; 714 __entry->size = d_inode(dentry)->i_size;
715 __entry->dev = dentry->d_inode->i_sb->s_dev; 715 __entry->dev = d_inode(dentry)->i_sb->s_dev;
716 ), 716 ),
717 717
718 TP_printk("dev %d,%d ino %lu size %lld parent %ld", 718 TP_printk("dev %d,%d ino %lu size %lld parent %ld",
@@ -734,8 +734,8 @@ TRACE_EVENT(ext3_unlink_exit,
734 ), 734 ),
735 735
736 TP_fast_assign( 736 TP_fast_assign(
737 __entry->ino = dentry->d_inode->i_ino; 737 __entry->ino = d_inode(dentry)->i_ino;
738 __entry->dev = dentry->d_inode->i_sb->s_dev; 738 __entry->dev = d_inode(dentry)->i_sb->s_dev;
739 __entry->ret = ret; 739 __entry->ret = ret;
740 ), 740 ),
741 741
diff --git a/include/trace/events/ext4.h b/include/trace/events/ext4.h
index 6e5abd6d38a2..68d2a677c04c 100644
--- a/include/trace/events/ext4.h
+++ b/include/trace/events/ext4.h
@@ -872,10 +872,10 @@ TRACE_EVENT(ext4_sync_file_enter,
872 TP_fast_assign( 872 TP_fast_assign(
873 struct dentry *dentry = file->f_path.dentry; 873 struct dentry *dentry = file->f_path.dentry;
874 874
875 __entry->dev = dentry->d_inode->i_sb->s_dev; 875 __entry->dev = d_inode(dentry)->i_sb->s_dev;
876 __entry->ino = dentry->d_inode->i_ino; 876 __entry->ino = d_inode(dentry)->i_ino;
877 __entry->datasync = datasync; 877 __entry->datasync = datasync;
878 __entry->parent = dentry->d_parent->d_inode->i_ino; 878 __entry->parent = d_inode(dentry->d_parent)->i_ino;
879 ), 879 ),
880 880
881 TP_printk("dev %d,%d ino %lu parent %lu datasync %d ", 881 TP_printk("dev %d,%d ino %lu parent %lu datasync %d ",
@@ -1453,10 +1453,10 @@ TRACE_EVENT(ext4_unlink_enter,
1453 ), 1453 ),
1454 1454
1455 TP_fast_assign( 1455 TP_fast_assign(
1456 __entry->dev = dentry->d_inode->i_sb->s_dev; 1456 __entry->dev = d_inode(dentry)->i_sb->s_dev;
1457 __entry->ino = dentry->d_inode->i_ino; 1457 __entry->ino = d_inode(dentry)->i_ino;
1458 __entry->parent = parent->i_ino; 1458 __entry->parent = parent->i_ino;
1459 __entry->size = dentry->d_inode->i_size; 1459 __entry->size = d_inode(dentry)->i_size;
1460 ), 1460 ),
1461 1461
1462 TP_printk("dev %d,%d ino %lu size %lld parent %lu", 1462 TP_printk("dev %d,%d ino %lu size %lld parent %lu",
@@ -1477,8 +1477,8 @@ TRACE_EVENT(ext4_unlink_exit,
1477 ), 1477 ),
1478 1478
1479 TP_fast_assign( 1479 TP_fast_assign(
1480 __entry->dev = dentry->d_inode->i_sb->s_dev; 1480 __entry->dev = d_inode(dentry)->i_sb->s_dev;
1481 __entry->ino = dentry->d_inode->i_ino; 1481 __entry->ino = d_inode(dentry)->i_ino;
1482 __entry->ret = ret; 1482 __entry->ret = ret;
1483 ), 1483 ),
1484 1484