@@ -46,11 +46,11 @@ equal_to_pool(char *str)
46
46
}
47
47
48
48
static inline int
49
- zfs_read_write_entry (io_info_t * info , struct inode * ip , uio_t * uio , int flags )
49
+ zfs_read_write_entry (io_info_t * info , struct znode * zn , zfs_uio_t * uio , int flags )
50
50
{
51
51
// Essentially ITOZSB, but written explicitly so that BCC can insert
52
52
// the necessary calls to bpf_probe_read.
53
- zfsvfs_t * zfsvfs = ip -> i_sb -> s_fs_info ;
53
+ zfsvfs_t * zfsvfs = zn -> z_inode . i_sb -> s_fs_info ;
54
54
55
55
objset_t * z_os = zfsvfs -> z_os ;
56
56
spa_t * spa = z_os -> os_spa ;
@@ -72,26 +72,26 @@ zfs_read_write_entry(io_info_t *info, struct inode *ip, uio_t *uio, int flags)
72
72
73
73
// @@ kprobe|zfs_read|zfs_read_entry
74
74
int
75
- zfs_read_entry (struct pt_regs * ctx , struct inode * ip , uio_t * uio , int flags )
75
+ zfs_read_entry (struct pt_regs * ctx , struct znode * zn , zfs_uio_t * uio , int flags )
76
76
{
77
77
io_info_t info = {};
78
78
info .is_write = false;
79
- return (zfs_read_write_entry (& info , ip , uio , flags ));
79
+ return (zfs_read_write_entry (& info , zn , uio , flags ));
80
80
}
81
81
82
82
// @@ kprobe|zfs_write|zfs_write_entry
83
83
int
84
- zfs_write_entry (struct pt_regs * ctx , struct inode * ip , uio_t * uio , int flags )
84
+ zfs_write_entry (struct pt_regs * ctx , struct znode * zn , zfs_uio_t * uio , int flags )
85
85
{
86
86
io_info_t info = {};
87
87
info .is_write = true;
88
- return (zfs_read_write_entry (& info , ip , uio , flags ));
88
+ return (zfs_read_write_entry (& info , zn , uio , flags ));
89
89
}
90
90
91
91
// @@ kretprobe|zfs_read|zfs_read_write_exit
92
92
// @@ kretprobe|zfs_write|zfs_read_write_exit
93
93
int
94
- zfs_read_write_exit (struct pt_regs * ctx , struct inode * ip , uio_t * uio )
94
+ zfs_read_write_exit (struct pt_regs * ctx , struct znode * zn , zfs_uio_t * uio )
95
95
{
96
96
u32 tid = bpf_get_current_pid_tgid ();
97
97
io_info_t * info = io_info_map .lookup (& tid );
0 commit comments