Skip to content

Commit f0bb551

Browse files
committed
estat zil script compilation error on 6.1
closes #57
1 parent a860fe3 commit f0bb551

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bpf/standalone/zil.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,14 @@
115115
return 0;
116116
}
117117
118-
int zfs_write_entry(struct pt_regs *ctx, struct inode *ip,
119-
uio_t *uio, int ioflag)
118+
int zfs_write_entry(struct pt_regs *ctx, struct znode *zn,
119+
void *uio, int ioflag)
120120
{
121121
u32 tid = bpf_get_current_pid_tgid();
122122
zil_tid_info_t info = {};
123123
124124
info.write_ts = bpf_ktime_get_ns();
125-
zfsvfs_t *zfsvfs = ip->i_sb->s_fs_info;
125+
zfsvfs_t *zfsvfs = zn->z_inode.i_sb->s_fs_info;
126126
objset_t *z_os = zfsvfs->z_os;
127127
spa_t *spa = z_os->os_spa;
128128
if (!equal_to_pool(spa->spa_name))

0 commit comments

Comments
 (0)