git://git.camperquake.de
/
zfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Generate zevents for speculative and soft errors
[zfs.git]
/
module
/
zfs
/
dmu_zfetch.c
diff --git
a/module/zfs/dmu_zfetch.c
b/module/zfs/dmu_zfetch.c
index
37037c3
..
b36c30f
100644
(file)
--- a/
module/zfs/dmu_zfetch.c
+++ b/
module/zfs/dmu_zfetch.c
@@
-665,7
+665,7
@@
dmu_zfetch(zfetch_t *zf, uint64_t offset, uint64_t size, int prefetched)
ZFETCHSTAT_BUMP(zfetchstat_hits);
} else {
ZFETCHSTAT_BUMP(zfetchstat_misses);
ZFETCHSTAT_BUMP(zfetchstat_hits);
} else {
ZFETCHSTAT_BUMP(zfetchstat_misses);
- if (
fetched = dmu_zfetch_colinear(zf, &zst
)) {
+ if (
(fetched = dmu_zfetch_colinear(zf, &zst)
)) {
ZFETCHSTAT_BUMP(zfetchstat_colinear_hits);
} else {
ZFETCHSTAT_BUMP(zfetchstat_colinear_misses);
ZFETCHSTAT_BUMP(zfetchstat_colinear_hits);
} else {
ZFETCHSTAT_BUMP(zfetchstat_colinear_misses);
@@
-722,3
+722,9
@@
dmu_zfetch(zfetch_t *zf, uint64_t offset, uint64_t size, int prefetched)
}
}
}
}
}
}
+
+#if defined(_KERNEL) && defined(HAVE_SPL)
+module_param(zfs_prefetch_disable, int, 0644);
+MODULE_PARM_DESC(zfs_prefetch_disable, "Disable all ZFS prefetching");
+#endif
+