diff options
Diffstat (limited to 'sys/miscfs/fuse/fuse_vnops.c')
-rw-r--r-- | sys/miscfs/fuse/fuse_vnops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/miscfs/fuse/fuse_vnops.c b/sys/miscfs/fuse/fuse_vnops.c index c4351c3155b..6de20b1744e 100644 --- a/sys/miscfs/fuse/fuse_vnops.c +++ b/sys/miscfs/fuse/fuse_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fuse_vnops.c,v 1.53 2019/07/10 16:43:19 anton Exp $ */ +/* $OpenBSD: fuse_vnops.c,v 1.54 2019/07/12 13:56:27 solene Exp $ */ /* * Copyright (c) 2012-2013 Sylvestre Gallon <ccna.syl@gmail.com> * @@ -168,7 +168,7 @@ filt_fusefsread(struct knote *kn, long hint) return (1); } - kn->kn_data = ip->filesize - foffset_get(kn->kn_fp); + kn->kn_data = ip->filesize - kn->kn_fp->f_offset; if (kn->kn_data == 0 && kn->kn_sfflags & NOTE_EOF) { kn->kn_fflags |= NOTE_EOF; return (1); |