diff options
author | solene <solene@cvs.openbsd.org> | 2019-07-12 13:56:29 +0000 |
---|---|---|
committer | solene <solene@cvs.openbsd.org> | 2019-07-12 13:56:29 +0000 |
commit | 0ec66fa131c6bdeca66a7743567e0663670ce75c (patch) | |
tree | 347a3ce66fd6d2545332f3749ac92f9524dc8d89 /sys/msdosfs | |
parent | e375eaa33fb168333550b5a0922605f77836b90a (diff) |
Revert anton@ changes about read/write unlocking
https://marc.info/?l=openbsd-cvs&m=156277704122293&w=2
ok anton@
Diffstat (limited to 'sys/msdosfs')
-rw-r--r-- | sys/msdosfs/msdosfs_vnops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/msdosfs/msdosfs_vnops.c b/sys/msdosfs/msdosfs_vnops.c index d39361ce732..dcf77c86a21 100644 --- a/sys/msdosfs/msdosfs_vnops.c +++ b/sys/msdosfs/msdosfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: msdosfs_vnops.c,v 1.123 2019/07/10 16:43:19 anton Exp $ */ +/* $OpenBSD: msdosfs_vnops.c,v 1.124 2019/07/12 13:56:27 solene Exp $ */ /* $NetBSD: msdosfs_vnops.c,v 1.63 1997/10/17 11:24:19 ws Exp $ */ /*- @@ -2017,7 +2017,7 @@ filt_msdosfsread(struct knote *kn, long hint) return (1); } - kn->kn_data = dep->de_FileSize - foffset_get(kn->kn_fp); + kn->kn_data = dep->de_FileSize - kn->kn_fp->f_offset; if (kn->kn_data == 0 && kn->kn_sfflags & NOTE_EOF) { kn->kn_fflags |= NOTE_EOF; return (1); |